initial commit
This commit is contained in:
16
themes/hugo-dpsg/layouts/partials/post_nav.html
Normal file
16
themes/hugo-dpsg/layouts/partials/post_nav.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- if .Site.Params.post_navigation }}
|
||||
{{- if or (.PrevInSection) (.NextInSection) }}
|
||||
<nav class="post-nav flex">
|
||||
{{- if .PrevInSection }}
|
||||
<div class="post-nav__item post-nav__item--prev">
|
||||
<a class="post-nav__link" href="{{ .PrevInSection.RelPermalink }}" rel="prev"><span class="post-nav__caption">« {{ T "post_nav_prev" }}</span><p class="post-nav__post-title">{{ .PrevInSection.Title }}</p></a>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- if .NextInSection }}
|
||||
<div class="post-nav__item post-nav__item--next">
|
||||
<a class="post-nav__link" href="{{ .NextInSection.RelPermalink }}" rel="next"><span class="post-nav__caption">{{ T "post_nav_next" }} »</span><p class="post-nav__post-title">{{ .NextInSection.Title }}</p></a>
|
||||
</div>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user