davideisinger.com

My personal website
Log | Files | Refs | README

commit 43f54a4cd22fdb0b370b1648736267618db83d54
parent 555f7f9d688eb7ebc09a37bee5fec5c3e3794539
Author: David Eisinger <[email protected]>
Date:   Sun, 16 Feb 2025 02:21:34 -0500

Slightly nicer PDF handling

Diffstat:
Mthemes/v2/layouts/partials/gemtext.gmi | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi @@ -3,7 +3,7 @@ {{ $content = $content | replaceRE `<!--more-->\n+` "" -}} {{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}} {{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}} -{{ $content = $content | replaceRE `=> (/.+\.pdf)` "=> https://davideisinger.com$1" -}} +{{ $content = $content | replaceRE `=> (/.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}} {{ $content = $content | replaceRE `(?m) >` ">" -}} {{ $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}} {{ $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}}