From ef736304163e0952735a8620a48564c288864a94 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 22 Dec 2024 02:13:20 +0300 Subject: Auto-commit 2024-12-22 --- layouts/_default/list.gmi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'layouts/_default/list.gmi') 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 "" "" -}} {{ $content := $content | replaceRE `\[(.+?)\]\((.+?)\)` "\n=> $2 $1\n" -}} {{ $content }} -- cgit v1.2.3