1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Switch log-url back to markdown logs

Some posts have different content on markdown versus gemini, so use
different log urls.
This commit is contained in:
Rohan Kumar 2023-08-05 15:21:38 -07:00
parent c9f13e8ab5
commit 0b225ebff6
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -9,8 +9,6 @@
{{- if or (eq .Page.Section "notes") (eq .Page.Title "Notes") -}}
{{- $isNotes = true -}}
{{- $action = "Noted" -}}
{{- else -}}
{{- $logURL = $logURL | strings.ReplaceRE `\.md` `.gmi` -}}
{{- end -}}
{{- $needsModTime := gt (sub .Lastmod.Unix .Date.Unix) 900 -}}
{{- $needsList := or (and (not $shortMeta) $needsModTime) (not $isNotes) -}}