remove unnecessary links from footer ; add missing top/page_menu anchors on some templates
This commit is contained in:
parent
b1a8aa429a
commit
2adad06454
|
@ -1,6 +1,8 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
{{ if not .Params.isBranchWithContent }}
|
||||
<a id="top" />
|
||||
<a id="page_menu" />
|
||||
{{if not .IsHome }}
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<a id="top" />
|
||||
<a id="page_menu" />
|
||||
<main>
|
||||
<form action="/search" method="GET">
|
||||
<input type="search" name="q" id="search-query" title="Search query" placeholder="Search....">
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<a id="top" />
|
||||
<a id="page_menu" />
|
||||
<ul class="terms">
|
||||
{{ range .Data.Terms }}
|
||||
<li>
|
||||
|
|
|
@ -9,23 +9,8 @@
|
|||
<a class="back_to_top" href="#top">Back to top</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Page.Params.categories }}
|
||||
| <a class="back_to_top" href="#categories">Back to categories</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Page.Params.tags }}
|
||||
| <a class="back_to_top" href="#tags">Back to tags</a>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
{{ $.Scratch.Set "has_related" true }}
|
||||
{{ end }}
|
||||
{{ if $.Scratch.Get "has_related" }}
|
||||
| <a class="back_to_top" href="#related">Back to related pages</a>
|
||||
{{ end }}
|
||||
| <a class="back_to_top" href="#page_menu">Back to page menu</a>
|
||||
| <a class="back_to_top" href="#nav_menu">Back to site menu</a>
|
||||
|
||||
{{ with .Site.Params.footer }}
|
||||
<br />{{ replace . "{Year}" now.Year | markdownify}}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue