Start gemini output
This commit is contained in:
9
themes/v2/layouts/_default/single.gmi
Normal file
9
themes/v2/layouts/_default/single.gmi
Normal file
@@ -0,0 +1,9 @@
|
||||
# {{ .Title }}
|
||||
{{ $content := .RawContent -}}
|
||||
{{ $content = $content | replaceRE `<!--more-->\n+` "" -}}
|
||||
{{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
|
||||
{{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
|
||||
{{ $content = $content | replaceRE `(?m)\n\n >` "\n\n" -}}
|
||||
{{ $content = $content | replaceRE `(?m)\n\n ([^>])` " $1" -}}
|
||||
{{ $content = $content | replaceRE `<audio controls src="([^"]+)"><\/audio>` "=> $1" }}
|
||||
{{ $content | safeHTML }}
|
||||
Reference in New Issue
Block a user