diff options
author | uPagge <git@upagge.ru> | 2021-02-27 14:46:36 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-02-27 14:46:36 +0300 |
commit | a61dccbfa8f2683bea14e3b51bff1e6bf9ab0585 (patch) | |
tree | b4b88ce5ed994df3d82a0f0c6c27610d9ee4dd88 /layouts | |
parent | 344877cf8ba2d26f396b9d0d6e2f582c66aad722 (diff) |
seo and content
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/section.html | 4 | ||||
-rw-r--r-- | layouts/taxonomy/list.html | 4 | ||||
-rw-r--r-- | layouts/taxonomy/terms.html | 4 |
4 files changed, 14 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 */ -}} diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index f31e68f..708952d 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -2,6 +2,10 @@ {{- .Title }} | {{ .Site.Title -}} {{- end -}} +{{- define "robots" -}} +<meta name="robots" content="noindex, follow" /> +{{- end -}} + {{- define "content" -}} <div class="page archive"> {{- /* Title */ -}} diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index 6a3929f..a24ab95 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -2,6 +2,10 @@ {{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} - {{ .Site.Title -}} {{- end -}} +{{- define "robots" -}} +<meta name="robots" content="noindex, follow" /> +{{- end -}} + {{- define "content" -}} {{- $taxonomies := .Data.Plural -}} {{- $terms := .Data.Terms.ByCount -}} |