diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-12 23:24:51 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-12 23:24:51 +0800 |
| commit | f6008883fafe8f743563663c155f5af0f03a71ac (patch) | |
| tree | b2ee3c977bc13f472b05caba4391068d5cefbf4e | |
| parent | 2d9e5a2e38d52a5c88916d5527fca8ae05c3fe7f (diff) | |
blacklist /search from instantclick
| -rw-r--r-- | layouts/partials/header.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index df9fe85..f172b3b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -125,6 +125,7 @@ {{- $is_search := eq (site.GetPage .KeyName).Layout `search` }} <li> <a href="{{ .URL | absLangURL }}" title="{{ .Title | default .Name }} {{- cond $is_search (" (Alt + /)" | safeHTMLAttr) ("" | safeHTMLAttr ) }}" + {{- if $is_search -}}data-no-instant{{- end -}} {{- cond $is_search (" accesskey=/" | safeHTMLAttr) ("" | safeHTMLAttr ) }}> <span {{- if eq $menu_item_url $page_url }} class="active" {{- end }}> {{- .Pre }} |
