diff options
Diffstat (limited to 'layouts/partials/post_pager.html')
-rw-r--r-- | layouts/partials/post_pager.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/partials/post_pager.html b/layouts/partials/post_pager.html new file mode 100644 index 0000000..350f347 --- /dev/null +++ b/layouts/partials/post_pager.html @@ -0,0 +1,20 @@ +<nav class="flex items-center justify-center pa4 f5"> + {{ with .NextInSection }} + <a + href="{{ .RelPermalink }}" + rel="prev" + class="text-black hover:bg-gray-200 p-2 border m-2" + > + « {{ .Title }}</a + > + {{ end }} + {{ with .PrevInSection }} + <a + href="{{ .RelPermalink }}" + rel="prev" + class="text-black hover:bg-gray-200 p-2 border m-2" + > + {{ .Title }} »</a + > + {{ end }} +</nav> |