Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-02-21 15:53:14 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-03-13 20:22:59 +0300
commite58b587a7268aa2265ad14b02a118eeaa3cae93c (patch)
tree280be04d24a36800fa3dadd4547bea16e137a3a5 /site
parent678da2ead938fc20deb1241beb0bd4d9739c5639 (diff)
Add support for meta robots.
Diffstat (limited to 'site')
-rw-r--r--site/layouts/_default/examples.html4
-rw-r--r--site/layouts/partials/header.html4
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" . }}