add exposed link in main menu
This commit is contained in:
parent
43451d3b31
commit
4c5976d35b
|
@ -1,14 +1,17 @@
|
|||
{{ $currentPage := . }}
|
||||
<header>
|
||||
<h1>
|
||||
<a href={{ .Site.BaseURL }}>{{ .Site.Title }}</a>
|
||||
<a href="{{ $.Site.BaseURL }}">{{ .Site.Title }}</a>
|
||||
</h1>
|
||||
{{ with .Site.Params.Description }}
|
||||
{{ with $.Site.Params.Description }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
<ul class="links">
|
||||
{{ range .Site.Sections }}
|
||||
{{ range $.Site.Sections }}
|
||||
<li class="link">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
<a href="{{ .Permalink }}" class="{{ if eq $currentPage.Section .Section }}exposed{{ end }}">
|
||||
{{ .Title | markdownify }} >
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue