revises post navigation and post meta templates
This commit is contained in:
parent
baac6b57d9
commit
f34f7ad13c
2 changed files with 16 additions and 13 deletions
17
layouts/partials/page-single/post-navigation.html
Normal file
17
layouts/partials/page-single/post-navigation.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{ $enabledPostNavigation := .Site.Params.postNavigation | default true }}
|
||||
{{ if $enabledPostNavigation }}
|
||||
<div class="post--navigation post--navigation-single">
|
||||
{{ with .PrevInSection -}}
|
||||
<a href="{{ .RelPermalink }}" class="post--navigation-prev">
|
||||
<i aria-hidden="true" class="fa fa-chevron-left"></i>
|
||||
<span class="navigation-tittle">{{ .Title }}</span>
|
||||
</a>
|
||||
{{- end }}
|
||||
{{ with .NextInSection -}}
|
||||
<a href="{{ .RelPermalink }}" class="post--navigation-next">
|
||||
<span class="navigation-tittle">{{ .Title }}</span>
|
||||
<i aria-hidden="true" class="fa fa-chevron-right"></i>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue