From 60d8675dc48b9b72aa5290a1f56dbec651e91fba Mon Sep 17 00:00:00 2001 From: infl00p Date: Sun, 21 Nov 2021 20:43:46 +0200 Subject: [PATCH] =?UTF-8?q?=CE=B4=CE=B9=CE=BF=CF=81=CE=B8=CF=8E=CF=83?= =?UTF-8?q?=CE=B5=CE=B9=CF=82=20=CF=83=CF=84=CE=BF=20gemini=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/hellug-gemini-site.md | 1 - layouts/_default/pages.gmi | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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) }}