]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add support for meta robots.
authorXhmikosR <xhmikosr@gmail.com>
Thu, 21 Feb 2019 12:53:14 +0000 (14:53 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 13 Mar 2019 17:22:59 +0000 (19:22 +0200)
site/layouts/_default/examples.html
site/layouts/partials/header.html

index a62abad0078e35aaafcb13e8773678c5d7cbfca5..241912621596fa1e6dcea216a7f762cf3d2c09ff 100644 (file)
 
     <link rel="canonical" href="{{ .Permalink }}">
 
+    {{ with .Params.robots -}}
+    <meta name="robots" content="{{ . }}">
+    {{- end }}
+
     {{ partial "stylesheet" . }}
 
     <style>
index c748fd82eefd35e4adcfb9fea62c60d2295df0a9..4c48c0462cb9318c379151c7904abcf5787d2fe6 100644 (file)
 
 <link rel="canonical" href="{{ .Permalink }}">
 
+{{ with .Params.robots -}}
+<meta name="robots" content="{{ . }}">
+{{- end }}
+
 {{ partial "stylesheet" . }}
 {{ partial "favicons" . }}
 {{ partial "social" . }}