Add article pagination links and display params

This commit is contained in:
James Panther
2021-08-14 14:44:34 +10:00
parent 074b1ff11d
commit c24b8ab2e1
9 changed files with 114 additions and 40 deletions
+2 -1
View File
@@ -3,7 +3,7 @@
<header>
<h1 class="mt-0 text-4xl font-extrabold">{{ .Title }}</h1>
<div class="mt-8 mb-12 text-base text-gray-400 dark:text-gray-500">
{{ partial "meta.html" . }}
{{ partial "article-meta.html" . }}
</div>
</header>
<section class="prose dark:prose-light">
@@ -11,6 +11,7 @@
</section>
<footer>
{{ partialCached "author.html" . }}
{{ partial "article-pagination.html" . }}
</footer>
{{/* Comments */}}
{{ if templates.Exists "partials/comments.html" }}
+6 -4
View File
@@ -7,10 +7,12 @@
<a class="text-xl font-medium hover:underline" href="{{ .Page.Permalink }}"
>{{ .Page.Title }}</a
>
<span class="text-base text-gray-400">
<span class="px-1">&middot;</span>
{{ .Count }}
</span>
{{ if $.Site.Params.taxonomy.showTermCount | default true }}
<span class="text-base text-gray-400">
<span class="px-1">&middot;</span>
{{ .Count }}
</span>
{{ end }}
</h2>
</article>
{{ end }}