fix(association): sections menu
This commit is contained in:
parent
110539843c
commit
dc82b8b4c0
11 changed files with 141 additions and 38 deletions
|
|
@ -5,15 +5,20 @@
|
|||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
|
||||
<nav class="sticky-nav">
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{.Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul>
|
||||
{{ range .CurrentSection.Pages }}
|
||||
<li>
|
||||
{{ $title := .Title }}
|
||||
{{ with .Params.short_title }}
|
||||
{{ $title = . }}
|
||||
{{ end }}
|
||||
<a href="{{ .RelPermalink }}">{{ $title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
{{ if .Content }}
|
||||
<div>
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue