[Feature Request #81]: Added support for customizable noindex
Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
@ -113,6 +113,12 @@ expiryDate = ["expiryDate"]
|
|||||||
# descriptionInPosts= true
|
# descriptionInPosts= true
|
||||||
# initialPublish = "Initally Posted on: "
|
# initialPublish = "Initally Posted on: "
|
||||||
# human = ["single","posts"]
|
# human = ["single","posts"]
|
||||||
|
# revisitAfter = "15 days"
|
||||||
|
# noIndex = false
|
||||||
|
# denyRobots = "noindex, nofollow, noarchive"
|
||||||
|
# allowRobots = "index, follow"
|
||||||
|
# noIndex = false
|
||||||
|
|
||||||
|
|
||||||
[[params.socialLinks]]
|
[[params.socialLinks]]
|
||||||
name = "mastodon"
|
name = "mastodon"
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
{{- if (not (in .Page.RelPermalink "404")) -}}
|
{{- if (or (in .Page.RelPermalink "404") (or .Site.Params.noIndex .Params.noIndex)) -}}
|
||||||
<meta name="robots" content="index, follow">
|
<meta name="robots" content="{{ .Site.Params.denyRobots | default "noindex, nofollow, noarchive" }}">
|
||||||
<meta name="revisit-after" content="15 days">
|
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<meta name="robots" content="noindex, nofollow, noarchive">
|
<meta name="robots" content="{{ .Site.Params.allowRobots | default "index, follow" }}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<link rel="author" href="{{"humans.txt" | relURL}}">
|
<link rel="author" href="{{"humans.txt" | relURL}}">
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
|
||||||
|
Reference in New Issue
Block a user