From 3c6a384560829d2850ddb2d483ac70ebba96ddc2 Mon Sep 17 00:00:00 2001 From: infl00p Date: Wed, 6 Oct 2021 19:27:01 +0300 Subject: [PATCH] =?UTF-8?q?=CF=85=CF=80=CE=BF=CF=83=CF=84=CE=AE=CF=81?= =?UTF-8?q?=CE=B9=CE=BE=CE=B7=20gemini=20-=20post?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/hellug-gemini-site.md | 16 ++++++++++++++++ layouts/_default/single.gmi | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 content/posts/hellug-gemini-site.md diff --git a/content/posts/hellug-gemini-site.md b/content/posts/hellug-gemini-site.md new file mode 100644 index 0000000..4693bfa --- /dev/null +++ b/content/posts/hellug-gemini-site.md @@ -0,0 +1,16 @@ +--- +title: "Παρουσία του HELLUG στο μικρό διαδίκτυο" +layout: "news" +bannertemplate: "hellug-banner.html" +date: 2021-10-06 +category_title: Δράσεις +tags: [Νέα] +draseis: [news] +--- +Ενεργοποιήθηκε η διαδικτυακή παρουσία του HELLUG στο «μικρό διαδίκτυο» με την κάψουλα gemini στο [gemini://hellug.gr](gemini://hellug.gr) . Το gemini είναι ένα ανοικτό προτόκολλο το οποίο αναπτύχθηκε πρόσφατα και είναι μια προσπάθεια για ένα πιο «ελαφρύ» και απλοποιημένο web, πλησιάζοντας το κλασσικό gopher. + +Λεπτομέρειες +* [Gemini Protocol](https://gemini.circumlunar.space/docs/) +* [Λογισμικό πρόσβασης στο Gemini](https://gemini.circumlunar.space/software/) + +--- diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 81f45d7..36cba62 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -17,7 +17,7 @@ {{ $links := findRE `\n=> ` $content }}{{ $scratch.Set "ref" (add (len $links) 1) }} {{ $refs := findRE `\[.+?\]\(.+?\)` $content }} {{ $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 | plainify }} +{{ $content | safeHTML }} --- {{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}