Start gemini output

This commit is contained in:
David Eisinger
2025-02-15 01:04:11 -05:00
parent c6e95046e3
commit 034d3e30d1
4 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
# {{ .Title }}
{{ $content := .RawContent -}}
{{ $content = $content | replaceRE `<!--more-->\n+` "" -}}
{{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
{{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
{{ $content = $content | replaceRE `(?m)\n\n >` "\n\n" -}}
{{ $content = $content | replaceRE `(?m)\n\n ([^>])` " $1" -}}
{{ $content = $content | replaceRE `<audio controls src="([^"]+)"><\/audio>` "=> $1" }}
{{ $content | safeHTML }}

View File

@@ -0,0 +1,6 @@
# David Eisinger
{{ .RawContent }}
{{ range (where .Site.RegularPages "Type" "in" "journal") -}}
=> {{ .RelPermalink | replaceRE `index.gmi` "" }} {{ .Title }}
{{ end -}}