Just don't put /elsewhere stuff on Gemini

It looks like shit.
This commit is contained in:
David Eisinger
2025-02-19 00:31:46 -05:00
parent 685c307462
commit 7e83527e77
2 changed files with 3 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ tasks:
DITHER_SERVER=http://localhost:4567 \ DITHER_SERVER=http://localhost:4567 \
hugo --minify hugo --minify
find public -name "*.enc" -type f -delete find public -name "*.enc" -type f -delete
find public/elsewhere -name "*.gmi" -type f -delete
# Sync files to production server # Sync files to production server
- deploy: | - deploy: |

View File

@@ -51,7 +51,8 @@
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}} {{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
{{- $content = $content | replaceRE `(?m)^- ` "* " -}} {{- $content = $content | replaceRE `(?m)^- ` "* " -}}
{{- $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}} {{- $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 = $content | replaceRE `(?m)\n{3,}` "\n\n" }}
{{- $content | safeHTML -}} {{- $content | safeHTML -}}