diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index a62abad0078e35aaafcb13e8773678c5d7cbfca5..241912621596fa1e6dcea216a7f762cf3d2c09ff 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 c748fd82eefd35e4adcfb9fea62c60d2295df0a9..4c48c0462cb9318c379151c7904abcf5787d2fe6 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" . }}