aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.gmi
blob: 1347179064d38da8bd05fba0b19c7f7ad9b4385508c1f3ccaf7149c031ad8f2e (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 }}