υποστήριξη gemini - html render
Όλοι οι έλεγχοι ήταν επιτυχείς
Hellug/www/pipeline/head This commit looks good
Όλοι οι έλεγχοι ήταν επιτυχείς
Hellug/www/pipeline/head This commit looks good
Αυτό το commit περιλαμβάνεται σε:
γονέας
8546dd28b0
commit
7e065a0b1a
3 αρχεία άλλαξαν με 16 προσθήκες και 19 διαγραφές
|
@ -1,5 +1,5 @@
|
||||||
# {{ .Title }}{{ $scratch := newScratch }}
|
# {{ .Title }}{{ $scratch := newScratch }}
|
||||||
{{ $content := .RawContent -}}
|
{{ $content := .RawContent | plainify -}}
|
||||||
{{ $content := $content | replaceRE `#### ` "### " -}}
|
{{ $content := $content | replaceRE `#### ` "### " -}}
|
||||||
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
|
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
|
||||||
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
|
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
|
||||||
|
@ -7,8 +7,8 @@
|
||||||
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
|
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
|
||||||
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
|
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
|
||||||
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
|
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < audio "(.+?)" >}}` "=> https://brainbaking.com/$1 Embedded Audio link - $1" -}}
|
{{ $content := $content | replaceRE `{{ < audio "(.+?)" >}}` "=> https://www.hellug.gr/$1 Embedded Audio link - $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < video "(.+?)" >}}` "=> https://brainbaking.com/$1 Embedded Video link - $1" -}}
|
{{ $content := $content | replaceRE `{{ < video "(.+?)" >}}` "=> https://www.hellug.gr/$1 Embedded Video link - $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < youtube (.+?) >}}` "=> https://www.youtube.com/watch?v=$1 YouTube Video link to $1" -}}
|
{{ $content := $content | replaceRE `{{ < youtube (.+?) >}}` "=> https://www.youtube.com/watch?v=$1 YouTube Video link to $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < vimeo (.+?) >}}` "=> https://vimeo.com/$1 Vimeo Video link to $1" -}}
|
{{ $content := $content | replaceRE `{{ < vimeo (.+?) >}}` "=> https://vimeo.com/$1 Vimeo Video link to $1" -}}
|
||||||
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
|
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
|
||||||
|
@ -20,13 +20,12 @@
|
||||||
{{ $content | safeHTML }}
|
{{ $content | safeHTML }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}
|
||||||
## Αναφορές
|
## Παραπομπές
|
||||||
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
|
{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
|
||||||
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
|
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
|
||||||
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}
|
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}
|
||||||
{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
---{{end}}
|
||||||
---
|
|
||||||
|
|
||||||
=> / Αρχική
|
=> / Αρχική
|
||||||
=> https://www.hellug.gr{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} Έκδοση HTML - Web Page
|
=> https://www.hellug.gr{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} Έκδοση HTML - Web Page
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# {{ .Title }}{{ $scratch := newScratch }}
|
# {{ .Title }}{{ $scratch := newScratch }}
|
||||||
{{ $content := .RawContent -}}
|
{{ $content := .RawContent | plainify -}}
|
||||||
{{ $content := $content | replaceRE `#### ` "### " -}}
|
{{ $content := $content | replaceRE `#### ` "### " -}}
|
||||||
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
|
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
|
||||||
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
|
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
|
||||||
|
@ -7,8 +7,8 @@
|
||||||
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
|
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
|
||||||
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
|
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
|
||||||
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
|
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < audio "(.+?)" >}}` "=> https://brainbaking.com/$1 Embedded Audio link - $1" -}}
|
{{ $content := $content | replaceRE `{{ < audio "(.+?)" >}}` "=> https://www.hellug.gr/$1 Embedded Audio link - $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < video "(.+?)" >}}` "=> https://brainbaking.com/$1 Embedded Video link - $1" -}}
|
{{ $content := $content | replaceRE `{{ < video "(.+?)" >}}` "=> https://www.hellug.gr/$1 Embedded Video link - $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < youtube (.+?) >}}` "=> https://www.youtube.com/watch?v=$1 YouTube Video link to $1" -}}
|
{{ $content := $content | replaceRE `{{ < youtube (.+?) >}}` "=> https://www.youtube.com/watch?v=$1 YouTube Video link to $1" -}}
|
||||||
{{ $content := $content | replaceRE `{{ < vimeo (.+?) >}}` "=> https://vimeo.com/$1 Vimeo Video link to $1" -}}
|
{{ $content := $content | replaceRE `{{ < vimeo (.+?) >}}` "=> https://vimeo.com/$1 Vimeo Video link to $1" -}}
|
||||||
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
|
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
|
||||||
|
@ -17,16 +17,14 @@
|
||||||
{{ $links := findRE `\n=> ` $content }}{{ $scratch.Set "ref" (add (len $links) 1) }}
|
{{ $links := findRE `\n=> ` $content }}{{ $scratch.Set "ref" (add (len $links) 1) }}
|
||||||
{{ $refs := findRE `\[.+?\]\(.+?\)` $content }}
|
{{ $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]" -}}
|
{{ $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 }}
|
{{ $content | safeHTML | plainify }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}
|
||||||
## Αναφορές
|
## Παραπομπές
|
||||||
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
|
{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
|
||||||
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
|
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
|
||||||
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}
|
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}---{{end}}
|
||||||
{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
|
||||||
---
|
|
||||||
|
|
||||||
{{ if .Next }}=> {{ replace .Next.RelPermalink "/gemini" "" 1}} ← Νεότερο: {{ .Next.Title }}{{ end }}
|
{{ if .Next }}=> {{ replace .Next.RelPermalink "/gemini" "" 1}} ← Νεότερο: {{ .Next.Title }}{{ end }}
|
||||||
{{ if .Prev -}}=> {{ replace .Prev.RelPermalink "/gemini" "" 1}} → Παλαιότερο: {{ .Prev.Title }}{{- end }}
|
{{ if .Prev -}}=> {{ replace .Prev.RelPermalink "/gemini" "" 1}} → Παλαιότερο: {{ .Prev.Title }}{{- end }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
## Καλως Ήλθατε
|
## Καλως Ήλθατε
|
||||||
|
|
||||||
Η Ένωση Ελλήνων Χρηστών και Φίλων του Λίνουξ σας καλωσορίζει στη
|
Η Ένωση Ελλήνων Χρηστών και Φίλων του Λίνουξ σας καλωσορίζει στη
|
||||||
κάπσουλα της στη σφαίρα του προτοκόλλου Gemini.
|
κάψουλα της στη σφαίρα του προτοκόλλου Gemini.
|
||||||
|
|
||||||
## Welcome
|
## Welcome
|
||||||
|
|
||||||
|
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα