diff options
| author | XhmikosR <[email protected]> | 2019-02-21 14:53:14 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-13 19:22:59 +0200 |
| commit | e58b587a7268aa2265ad14b02a118eeaa3cae93c (patch) | |
| tree | 280be04d24a36800fa3dadd4547bea16e137a3a5 | |
| parent | 678da2ead938fc20deb1241beb0bd4d9739c5639 (diff) | |
| download | bootstrap-e58b587a7268aa2265ad14b02a118eeaa3cae93c.tar.xz bootstrap-e58b587a7268aa2265ad14b02a118eeaa3cae93c.zip | |
Add support for meta robots.
| -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 a62abad00..241912621 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 c748fd82e..4c48c0462 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" . }} |
