feat: add tracking to site and update dates

This commit is contained in:
Daniel Alejandro Gallegos 2024-07-08 13:34:43 -04:00
parent 24db1b7035
commit deea693c44
Signed by: taco
SSH key fingerprint: SHA256:YgoAbZ3x1d1kTGKEmT8elbjEvK/mn0hc4ATFgWhykR0
6 changed files with 6 additions and 11 deletions

View file

@ -1,8 +1,7 @@
+++ +++
title = "a new living arrangement" title = "a new living arrangement"
author = "\\@chirpbirb" author = "@chirpbirb"
publishDate = "2021-03-16T21:03:00" publishDate = "2021-03-16T21:03:00"
type = "showcase"
+++ +++
**rating:** *Questionable (13+)* **rating:** *Questionable (13+)*

View file

@ -2,7 +2,6 @@
title = "release" title = "release"
author = "@chirpbirb" author = "@chirpbirb"
publishDate = "2023-07-08T20:19:00" publishDate = "2023-07-08T20:19:00"
type = "showcase"
+++ +++
**rating:** *Explicit (18+)* **rating:** *Explicit (18+)*

View file

@ -2,6 +2,7 @@ baseURL = 'https://birdcat.online/'
languageCode = 'en-us' languageCode = 'en-us'
title = '🐥😺 birdcat dot online 🌐' title = '🐥😺 birdcat dot online 🌐'
theme = 'aviary' theme = 'aviary'
enableGitInfo = true
[[menus.main]] [[menus.main]]
name = 'home' name = 'home'
@ -32,9 +33,3 @@ weight = 50
name = 'links' name = 'links'
pageRef = '/links' pageRef = '/links'
weight = 60 weight = 60
enableGitInfo = true
[frontmatter]
date = ["date", "publishDate", "lastmod"]
lastmod = ["lastmod", ":git", "date", "publishDate"]

View file

@ -10,7 +10,7 @@
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }} {{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p> <p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p> <p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
{{ if ne $lastUpdated $dateHuman }} {{ if ne $lastUpdated $lastMachine }}
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p> <p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -10,3 +10,4 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
<script defer src="https://umami.birdcat.cafe/script.js" data-website-id="9d5295e2-c4e3-4be9-b1e6-b37c4a11da19"></script>

View file

@ -7,9 +7,10 @@
<blockquote> <blockquote>
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p> <p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p> <p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
{{ if ne $lastUpdated $dateHuman }} {{ if ne $lastUpdated $lastMachine }}
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p> <p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
{{ end }} {{ end }}
</blockquote> </blockquote>
{{ .Content }} {{ .Content }}
test
{{ end }} {{ end }}