We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4a20d commit 7d0a571Copy full SHA for 7d0a571
hugo-modules/core/utils/seo/private/get-tags.html
@@ -98,8 +98,9 @@
98
{{ with $seo }}
99
{{ $value := "noindex, nofollow" }}
100
{{ $production := eq (getenv "HUGO_ENV") "production" }}
101
- {{ $index := cond (eq .no_index true) "noindex" "index" }}
102
- {{ $follow := cond (eq .no_follow true) "nofollow" "follow" }}
+ {{ $is_404 := eq $.Page.Kind "404" }}
+ {{ $index := cond (or (eq .no_index true) $is_404) "noindex" "index" }}
103
+ {{ $follow := cond (or (eq .no_follow true) $is_404) "nofollow" "follow" }}
104
105
{{ if and $production }}
106
{{ $value = (print $index ", " $follow) }}
0 commit comments