mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 22:09:44 +01:00
Patch: Updated next and prev references and enhanced printing
This commit is contained in:
parent
6f6536e8ac
commit
5cdc616d96
1 changed files with 7 additions and 7 deletions
|
@ -1,17 +1,17 @@
|
|||
<footer class="page-footer">
|
||||
<hr />
|
||||
|
||||
{{ if .Prev }}
|
||||
<div class="previous-post" style="display:inline-block;">
|
||||
{{ if .PrevPage }}
|
||||
<a class="link-reverse" href="{{ .PrevPage.Permalink }}?ref=footer">« {{ .PrevPage.Title | truncate 50 "..."}}</a>
|
||||
{{ end }}
|
||||
<a class="link-reverse" href="{{ .Prev.Permalink }}?ref=footer">« {{ .Prev.Title | truncate 50 "..."}}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Next }}
|
||||
<div class="next-post", style="display:inline-block;float:right;">
|
||||
{{ if .NextPage }}
|
||||
<a class="link-reverse" href="{{ .NextPage.Permalink }}?ref=footer">{{ .NextPage.Title | truncate 50 "..." }} »</a>
|
||||
{{ end }}
|
||||
<a class="link-reverse" href="{{ .Next.Permalink }}?ref=footer">{{ .Next.Title | truncate 50 "..." }} »</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<ul class="page-footer-menu">
|
||||
{{/* SOCIALS */}}
|
||||
|
|
Loading…
Reference in a new issue