Skip to content

<meta name="description or keywords"> are always used site variables #299

@fantasticmao

Description

@fantasticmao

Hello, I found that the meta tag <meta name="description"> and <meta name="keywords"> use the Hugo site variables on every page. I checked the source code, it is because of the following code snippet.

{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}

Hmmm, I think this is actually not SEO friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions