diff --git a/content/posts/hellug-gemini-site.md b/content/posts/hellug-gemini-site.md index 4693bfa..679d0d7 100644 --- a/content/posts/hellug-gemini-site.md +++ b/content/posts/hellug-gemini-site.md @@ -13,4 +13,3 @@ draseis: [news] * [Gemini Protocol](https://gemini.circumlunar.space/docs/) * [Λογισμικό πρόσβασης στο Gemini](https://gemini.circumlunar.space/software/) ---- diff --git a/layouts/_default/pages.gmi b/layouts/_default/pages.gmi index 556728b..df70f63 100644 --- a/layouts/_default/pages.gmi +++ b/layouts/_default/pages.gmi @@ -18,7 +18,7 @@ {{ $scratch.Set "content" $content }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $contentInLoop := $scratch.Get "content" }}{{ $url := (printf "%s #%d" . $ref) }}{{ $contentInLoop := replace $contentInLoop . $url -}}{{ $scratch.Set "content" $contentInLoop }}{{ $scratch.Set "ref" (add $ref 1) }}{{ end }}{{ $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}} {{ $content | safeHTML }} ---- + {{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }} ## Παραπομπές {{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}