update gemini configuration

This commit is contained in:
Dominic Reich 2025-02-09 14:37:39 +01:00
parent f36c1c66dd
commit 1affb572b2
Signed by: dominic
GPG key ID: 0B5787DB23049C45
3 changed files with 35 additions and 15 deletions

View file

@ -118,7 +118,7 @@ notAlternative = true
[outputs] [outputs]
home = [ "HTML", "gopher", "gemini", "ATOM", "JSON", "HumansTXT", "Tootpick"] home = [ "HTML", "gopher", "gemini", "ATOM", "JSON", "HumansTXT", "Tootpick"]
section = [ "HTML", "gopher" ] section = [ "HTML" ]
page = [ "HTML", "gopher", "gemini" ] page = [ "HTML", "gopher", "gemini" ]
taxonomy = [ "HTML", "gopher" ] taxonomy = [ "HTML", "gopher" ]
#taxonomyTerm = [ "HTML" ] #taxonomyTerm = [ "HTML" ]

View file

@ -1,15 +1,13 @@
# {{ .Title }} # {{ .Title }}
{{ .RawContent }} {{ $content := .RawContent -}}
{{ $content := $content | replaceRE `{{<\s*(?:rel)?ref\s+"([^"]+)"\s*>}}` "$1" -}}
{{ $content := $content | replaceRE `{{<\s*figure\s*(?:.*)?src="([^"]+)"(?:.*)?caption="([^"]+)"(?:.*)?>}}` "![$2]($1)" -}}
{{ $content := $content | replaceRE `{{<\s*image\s*.*?src="([^"]+)".*?>}}` "![]($1)" -}}
{{ $content := $content | replaceRE `\!\[(.+?)\]\((.+?)\)` "=> $2 Image: $1" -}}
{{- $content := .RawContent -}}
{{- $content = $content | replaceRE `\!\[(.+?)\]\((.+?)\)` "=> $2 Image: $1" }}
{{ $content }} {{ $content }}
{{- range findRE `\[.+?\]\(.+?\)` $content }}
{{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)(.+)` "$1$3\n\n=> $2 $1 " }}
{{- end }}
{{ if .Next }}=> {{ .Next.RelPermalink }} ← Newer: {{ .Next.Title }}{{ end }} {{ if .Next }}=> {{ .Next.RelPermalink }} ← Newer: {{ .Next.Title }}{{ end }}
{{ if .Prev -}}=> {{ .Prev.RelPermalink }} → Older: {{ .Prev.Title }}{{- end }} {{ if .Prev -}}=> {{ .Prev.RelPermalink }} → Older: {{ .Prev.Title }}{{- end }}

View file

@ -1,14 +1,36 @@
## List of posts # oe7drt.com
{{ range .RegularPages }} Welcome to my personal Gemini space!
This is my personal space on the internet that I use mainly to keep track on
different topics mainly on tech stuff like amateur radio or general computer
related topics with some flavour of Linux and networking (and a bit of *BSD)
I will probably also publish more non-tech stuff within the Outdoor and DIY
categories on the equipment page.
=> gopher://oe7drt.com/ View via Gopher
=> https://oe7drt.com/ View via HTTPS
=> http://5uxkejb6la7olhncaotybxrscmdlbxwy64ucuyrum4tsgfuoxbyav2qd.onion/ View via Tor Hidden Service
=> /about/ About this Gemini capsule
=> /archives/ Archives
## Pages
{{ range (where .RegularPages "Params.gemini" "ne" "false") }}
=> {{ .RelPermalink }} {{ .Title }} => {{ .RelPermalink }} {{ .Title }}
{{- end }} {{- end }}
## Posts grouped by year ## Notes
{{ range .RegularPages.GroupByDate "2006" }} {{ range (where (where .Site.RegularPages.ByDate.Reverse "Section" "in" (slice "notes")) ".Params.gemini" "ne" "false") }}
### {{ .Key }}
{{ range .Pages.ByDate.Reverse }}
=> {{ .RelPermalink }} {{ .Title }} => {{ .RelPermalink }} {{ .Title }}
{{- end }} {{- end }}
{{ end }}
## Equipment
{{ range (where (where .Site.RegularPages.ByDate.Reverse "Section" "in" (slice "equipment")) ".Params.gemini" "ne" "false") }}
=> {{ .RelPermalink }} {{ .Title }}
{{- end }}