commit 7e83527e77225d0837661706a2d13ee0e8de586e
parent 685c3074626d052e837fd2e40fe48843402dcc48
Author: David Eisinger <[email protected]>
Date: Wed, 19 Feb 2025 00:31:46 -0500
Just don't put /elsewhere stuff on Gemini
It looks like shit.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.build.yml b/.build.yml
@@ -49,6 +49,7 @@ tasks:
DITHER_SERVER=http://localhost:4567 \
hugo --minify
find public -name "*.enc" -type f -delete
+ find public/elsewhere -name "*.gmi" -type f -delete
# Sync files to production server
- deploy: |
diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi
@@ -51,7 +51,8 @@
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}
{{- $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}}
-{{- $content = $content | replaceRE `=> (/.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}}
+{{- $content = $content | replaceRE `=> /(.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}}
+{{- $content = $content | replaceRE `=> /(elsewhere[^ ])` (printf "=> %s$1" site.BaseURL) -}}
{{- $content = $content | replaceRE `(?m)\n{3,}` "\n\n" }}
{{- $content | safeHTML -}}