added last_modified for the front matter.. also git info which could make it slower..

This commit is contained in:
Marcell Mars 2020-03-17 15:51:29 +01:00
parent 10e6ec1125
commit 24ee5f501c
4 changed files with 15 additions and 2 deletions

View File

@ -4,6 +4,7 @@ title = "Pirate Care"
theme = "piratecare"
relativeurls = true
disableKinds = ["RSS", "sitemap", "taxonomy"]
enableGitInfo = true
[params]
description = "Network of activists, researchers and practitioners against the criminalisation of solidarity & for a common care infrastructure."

View File

@ -56,7 +56,7 @@ html {
}
img {
@apply py-2;
@apply py-2;
}
/* purgecss ignore */

View File

@ -34,6 +34,12 @@
{{define "main" }}
<article>
<div class="content-text">{{ .Content }}</div>
{{ if eq .Params.last_modified "top" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
<div class="content-text">{{ .Content }}</div>
{{ if eq .Params.last_modified "bottom" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
</article>
{{ end }}

View File

@ -44,6 +44,12 @@
{{define "main" }}
<article>
{{ if eq .Params.last_modified "top" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
<div class="content-text">{{ .Content }}</div>
{{ if eq .Params.last_modified "bottom" }}
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
{{ end }}
</article>
{{ end }}