commit a81c5ae24f4d66116fed9d614fcb39a8ca5f3128
parent 2b14b3d4e5eab53aa45647490bb797b642a82a59
Author: Cézar Augusto <32869222+cizordj@users.noreply.github.com>
Date:   Wed, 22 Mar 2023 20:22:42 -0300

Remove duplicated robots tag

Closes #446
Diffstat:
Mlayouts/partials/head.html | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html @@ -2,11 +2,12 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <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 }} +{{ else }} + <meta name="robots" content="noodp" /> {{ end }} <link rel="canonical" href="{{ .Permalink }}" />