From bd7ba4fe06dcf39ef0219d51e40b38da80fdefcd Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Thu, 2 Jan 2025 20:05:31 +0300 Subject: Auto-commit 2025-01-02 --- layouts/partials/content.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/content.txt b/layouts/partials/content.txt index b03077a..c646fe6 100644 --- a/layouts/partials/content.txt +++ b/layouts/partials/content.txt @@ -1,5 +1,6 @@ {{ $content := .RawContent -}} {{ $content := $content | replaceRE "(?s:)" "" -}} -{{ $content := $content | replaceRE `\!\[.*?\]\((.*?)\)` "$1" -}} +{{ $content := $content | replaceRE `\!\[.*?\]\((.*?)\)` "!PATH!$1\n" -}} +{{ $content := $content | replaceRE `!PATH!` .Permalink -}} {{ $content := $content | replaceRE `\[(.*?)\]\((.*?)\)` "$1 ($2)" -}} {{ htmlUnescape $content | safeHTML }} \ No newline at end of file -- cgit v1.2.3