Add support for single page menu
This commit is contained in:
parent
6e0b0b6fc7
commit
193fbeca7c
4 changed files with 91 additions and 12 deletions
|
@ -1,5 +1,12 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ if .Menus }}
|
||||
<nav class="post-navigation">
|
||||
{{ range .Menus }}
|
||||
<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
<article class="post">
|
||||
<header>
|
||||
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
||||
|
@ -10,7 +17,7 @@
|
|||
{{ partial "postInfo.html" . }}
|
||||
</article>
|
||||
|
||||
{{ if .Site.Params.paginationSinglePost}}
|
||||
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
||||
{{ partial "paginationPost.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue