diff --git a/hugo.toml.example b/hugo.toml.example index bfd95be..2ce5143 100644 --- a/hugo.toml.example +++ b/hugo.toml.example @@ -113,6 +113,12 @@ expiryDate = ["expiryDate"] # descriptionInPosts= true # initialPublish = "Initally Posted on: " # human = ["single","posts"] + # revisitAfter = "15 days" + # noIndex = false + # denyRobots = "noindex, nofollow, noarchive" + # allowRobots = "index, follow" + # noIndex = false + [[params.socialLinks]] name = "mastodon" diff --git a/layouts/partials/site-meta.html b/layouts/partials/site-meta.html index 190bde6..b3561cd 100644 --- a/layouts/partials/site-meta.html +++ b/layouts/partials/site-meta.html @@ -2,11 +2,10 @@ -{{- if (not (in .Page.RelPermalink "404")) -}} - - +{{- if (or (in .Page.RelPermalink "404") (or .Site.Params.noIndex .Params.noIndex)) -}} + {{- else -}} - + {{- end -}}