Skip to content

Add page descriptions to meta description tag #60

Description

@joeroe

Although a bit off-topic, I think you should also add page description to single page template instead of a site level description?

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

Maybe something like this, I'm not sure whether the page description would just override the site one.

<!-- Site level -->
{{ with .Site.Params.about }}<meta name="description" content="{{ .description }}">{{ end }}
<!-- Page level -->
<meta name="description" content="{{ .Params.description }}">

Originally posted by @Vinfall in #55 (comment)

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