From 99deed9ef6ab7624d5485ed582de015fae6b578b Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Thu, 2 Jan 2025 19:52:06 +0300 Subject: Auto-commit 2025-01-02 --- layouts/partials/content.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 layouts/partials/content.txt (limited to 'layouts/partials/content.txt') diff --git a/layouts/partials/content.txt b/layouts/partials/content.txt new file mode 100644 index 0000000..26a7901 --- /dev/null +++ b/layouts/partials/content.txt @@ -0,0 +1,5 @@ +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE "(?s:)" "" -}} +{{ $content := $content | replaceRE `\!\[.*?\]\((.*?)\)` "$1" -}} +{{ $content := $content | replaceRE `\[(.*?)\]\((.*?)\)` "$1 ($2)" -}} +{{ $content }} \ No newline at end of file -- cgit v1.2.3