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 }}