aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.gmi
blob: ae4fc3cf2851f926cc377150de79d49c6915b16452a35c361ca67191f74f4b85 (plain)
1
2
3
4
5
6
7
8
9
{{ define "main" }}
=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} 🔗 Return to homepage


{{ $content := .RawContent }}
{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }}
{{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }}
{{- $content = $content | replaceRE `\n- (.+?)` "\n* $1" }}
{{- $content | safeHTML }}{{ end }}