Skip to content

Suggestion for canonical tag in basic-seo.html #42

@vtomyev

Description

@vtomyev

instead of:
{{ with .Params.canonical }}

{{ end }} which only works if you set a non empty property for "canonical" property

Use this:
{{ if .Params.canonical.enable }}
{{ with .Params.canonical.link }}

{{ else }}

{{ end }}
{{ end }}

it gives the user a choice wheather or not to have a canonical tag (which by default is the page itself) or to add a URL to another page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions