diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/section.html | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b53c2bb..a8b4886 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,13 +5,14 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="robots" content="noodp" /> + {{- block "robots" . }}<meta name="robots" content="noodp" />{{ end -}} <title> {{- block "title" . }}{{ .Site.Title }}{{ end -}} </title> {{- partial "head/meta.html" . -}} {{- partial "head/link.html" . -}} + {{- partial "head/seo.html" . -}} {{- block "dnsPrefetch" . }} {{- with $.Site.Params.Seo.dnsPrefetch -}} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index c5e9b0c..b476ebf 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -2,6 +2,10 @@ {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}} {{- end -}} +{{- define "robots" -}} +<meta name="robots" content="noindex, follow" /> +{{- end -}} + {{- define "content" -}} <div class="page archive"> {{- /* Title */ -}} |