diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-02-21 15:53:14 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-13 20:22:59 +0300 |
commit | e58b587a7268aa2265ad14b02a118eeaa3cae93c (patch) | |
tree | 280be04d24a36800fa3dadd4547bea16e137a3a5 /site | |
parent | 678da2ead938fc20deb1241beb0bd4d9739c5639 (diff) |
Add support for meta robots.
Diffstat (limited to 'site')
-rw-r--r-- | site/layouts/_default/examples.html | 4 | ||||
-rw-r--r-- | site/layouts/partials/header.html | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index a62abad007..2419126215 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -10,6 +10,10 @@ <link rel="canonical" href="{{ .Permalink }}"> + {{ with .Params.robots -}} + <meta name="robots" content="{{ . }}"> + {{- end }} + {{ partial "stylesheet" . }} <style> diff --git a/site/layouts/partials/header.html b/site/layouts/partials/header.html index c748fd82ee..4c48c0462c 100644 --- a/site/layouts/partials/header.html +++ b/site/layouts/partials/header.html @@ -11,6 +11,10 @@ <link rel="canonical" href="{{ .Permalink }}"> +{{ with .Params.robots -}} +<meta name="robots" content="{{ . }}"> +{{- end }} + {{ partial "stylesheet" . }} {{ partial "favicons" . }} {{ partial "social" . }} |