aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.gmi
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.gmi')
-rw-r--r--layouts/_default/list.gmi7
1 files changed, 1 insertions, 6 deletions
diff --git a/layouts/_default/list.gmi b/layouts/_default/list.gmi
index 8560760..cbdba50 100644
--- a/layouts/_default/list.gmi
+++ b/layouts/_default/list.gmi
@@ -1,12 +1,7 @@
# {{ .Title }}
-{{ $content := .Content -}}
+{{ $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 "(?s:< !--more-- >)" "" -}}
-{{ $content := $content | replace "<!-- more -->" "" -}}
{{ $content := $content | replaceRE `\[(.+?)\]\((.+?)\)` "\n=> $2 $1\n" -}}
{{ $content }}