diff options
author | Asur <asur@asurbernardo.com> | 2020-10-14 23:46:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 23:46:19 +0300 |
commit | c54b9edd2b1a6cbf9edd8e63152728f86755c775 (patch) | |
tree | e03d1f929ff024c96b6293892bff17e41ebe1def | |
parent | 00cce372aa97654b3adc34f733db31b963ecaa2d (diff) | |
parent | 1582fc299a3d4071f0785607876cef934c345148 (diff) |
Merge pull request #42 from asurbernardo/hotfix-amp-validation-next-page-hidedevelopment3.0
Don't print next-page-hide flag on non page types
-rw-r--r-- | layouts/partials/header/base.html | 2 | ||||
-rw-r--r-- | layouts/partials/header/search.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header/base.html b/layouts/partials/header/base.html index 1db2076..98b03f6 100644 --- a/layouts/partials/header/base.html +++ b/layouts/partials/header/base.html @@ -1,4 +1,4 @@ -<nav class="header__menu" next-page-hide> +<nav class="header__menu" {{ if .IsPage }}next-page-hide{{ end }}> <a class="header__menu__logo" data-rel="prefetch" href="{{ "" | absLangURL }}" aria-label="{{ i18n "goBackHome" }}"> {{- partial "header/logo.html" . -}} </a> diff --git a/layouts/partials/header/search.html b/layouts/partials/header/search.html index 55800eb..8c02f93 100644 --- a/layouts/partials/header/search.html +++ b/layouts/partials/header/search.html @@ -5,7 +5,7 @@ src="{{ `search.json` | absLangURL }}" min-characters="1" class="header__search" - next-page-hide> + {{ if .IsPage }}next-page-hide{{ end }}> <input class="header__search__input" type="text" placeholder="{{ i18n "search"}}" aria-label="{{ i18n "search"}}"> <template class="header__search__item-template" type="amp-mustache" id="amp-template-custom"> <div class="search-item" data-value="{{ `{{url}}` }}"> |