blob: 5ff88c8d568d6d1b48620c8b17f299d42b417e75f40341625eb2efb62c25b18c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{ define "main" }}
{{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" "🔗 " -}}
=> / 🔗 Return to homepage
{{ if .Page.Params.pageinfo }}{{ partial "pageinfo" . }}
{{ end -}}
# {{ .Name | safeHTML }}
{{ $content := .RawContent }}
{{- $content = $content | replaceRE `\n####{0,3}` "\n###" }}
{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` (print "\n=> $2 " $emoji "$1") }}
{{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }}
{{- $content = $content | replaceRE `\n- ` "\n* " }}
{{- $content | safeHTML }}{{ end }}
|