υποστήριξη gemini - post
Όλοι οι έλεγχοι ήταν επιτυχείς
Hellug/www/pipeline/head This commit looks good

Αυτό το commit περιλαμβάνεται σε:
infl00p 2021-10-06 19:27:01 +03:00
γονέας 7e065a0b1a
commit 3c6a384560
2 αρχεία άλλαξαν με 17 προσθήκες και 1 διαγραφές

16
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/)
---

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