diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bb214f3..5a4f31e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,6 +3,11 @@ <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" /> <meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" /> <meta name="robots" content="noodp" /> +{{ if .Params.noindex }} + {{ if or (eq (.Param "noindex") true) (eq (.Param "noindex") "true") }} + <meta name="robots" content="noindex" /> + {{ end }} +{{ end }} <link rel="canonical" href="{{ .Permalink }}" /> {{ template "_internal/google_analytics.html" . }}