Patch: Updated next and prev references and enhanced printing

This commit is contained in:
Haidar Ali 2024-12-07 03:46:58 +05:00 committed by GitHub
parent 6f6536e8ac
commit 5cdc616d96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,17 +1,17 @@
<footer class="page-footer"> <footer class="page-footer">
<hr /> <hr />
{{ if .Prev }}
<div class="previous-post" style="display:inline-block;"> <div class="previous-post" style="display:inline-block;">
{{ if .PrevPage }} <a class="link-reverse" href="{{ .Prev.Permalink }}?ref=footer">« {{ .Prev.Title | truncate 50 "..."}}</a>
<a class="link-reverse" href="{{ .PrevPage.Permalink }}?ref=footer">« {{ .PrevPage.Title | truncate 50 "..."}}</a>
{{ end }}
</div> </div>
{{ end }}
{{ if .Next }}
<div class="next-post", style="display:inline-block;float:right;"> <div class="next-post", style="display:inline-block;float:right;">
{{ if .NextPage }} <a class="link-reverse" href="{{ .Next.Permalink }}?ref=footer">{{ .Next.Title | truncate 50 "..." }} »</a>
<a class="link-reverse" href="{{ .NextPage.Permalink }}?ref=footer">{{ .NextPage.Title | truncate 50 "..." }} »</a>
{{ end }}
</div> </div>
{{ end }}
<ul class="page-footer-menu"> <ul class="page-footer-menu">
{{/* SOCIALS */}} {{/* SOCIALS */}}