diff options
Diffstat (limited to 'themes/new_theme/layouts/partials/pager.html')
-rw-r--r-- | themes/new_theme/layouts/partials/pager.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/new_theme/layouts/partials/pager.html b/themes/new_theme/layouts/partials/pager.html new file mode 100644 index 0000000..78cf9d2 --- /dev/null +++ b/themes/new_theme/layouts/partials/pager.html @@ -0,0 +1,22 @@ +{{- if .Param "pager" }} +{{- if or (.PrevInSection) (.NextInSection) }} +<nav class="pager flex"> + {{- if .PrevInSection }} + <div class="pager__item pager__item--prev"> + <a class="pager__link" href="{{ .PrevInSection.RelPermalink }}" rel="prev"> + <span class="pager__subtitle">« {{ T "post_nav_prev" }}</span> + <p class="pager__title">{{ .PrevInSection.Title }}</p> + </a> + </div> + {{- end }} + {{- if .NextInSection }} + <div class="pager__item pager__item--next"> + <a class="pager__link" href="{{ .NextInSection.RelPermalink }}" rel="next"> + <span class="pager__subtitle">{{ T "post_nav_next" }} »</span> + <p class="pager__title">{{ .NextInSection.Title }}</p> + </a> + </div> + {{- end }} +</nav> +{{- end }} +{{- end }} |