1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12: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") -}} {{- if or (eq .Page.Section "notes") (eq .Page.Title "Notes") -}}
{{- $isNotes = true -}} {{- $isNotes = true -}}
{{- $action = "Noted" -}} {{- $action = "Noted" -}}
{{- else -}}
{{- $logURL = $logURL | strings.ReplaceRE `\.md` `.gmi` -}}
{{- end -}} {{- end -}}
{{- $needsModTime := gt (sub .Lastmod.Unix .Date.Unix) 900 -}} {{- $needsModTime := gt (sub .Lastmod.Unix .Date.Unix) 900 -}}
{{- $needsList := or (and (not $shortMeta) $needsModTime) (not $isNotes) -}} {{- $needsList := or (and (not $shortMeta) $needsModTime) (not $isNotes) -}}