Add params for hiding date and reading time per article

This commit is contained in:
James Panther
2021-08-16 14:05:46 +10:00
parent 5575d2b43e
commit 7ce10997ce
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
<span class="mr-3">&larr;</span>
<span class="flex flex-col">
<span class="button__text">{{ .NextInSection.Title }}</span>
{{ if .Site.Params.article.showDate | default true }}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
<time
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
datetime="{{ .Date }}"
@@ -26,7 +26,7 @@
<a class="flex text-right" href="{{ .PrevInSection.Permalink }}">
<span class="flex flex-col">
<span>{{ .PrevInSection.Title }}</span>
{{ if .Site.Params.article.showDate | default true }}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
<time
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
datetime="{{ .Date }}"