Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asurbernardo/amperage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsur <asur@asurbernardo.com>2020-10-14 23:50:10 +0300
committerAsur <asur@asurbernardo.com>2020-10-14 23:50:10 +0300
commit1582fc299a3d4071f0785607876cef934c345148 (patch)
treee03d1f929ff024c96b6293892bff17e41ebe1def
parentf0856b98279eb989d00119a6a7890a6865c6bcf5 (diff)
Don't print next-page-hide flag on non page typeshotfix-amp-validation-next-page-hide
-rw-r--r--layouts/partials/header/base.html2
-rw-r--r--layouts/partials/header/search.html2
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}}` }}">