diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-01-02 20:05:31 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-01-02 20:05:31 +0300 |
commit | bd7ba4fe06dcf39ef0219d51e40b38da80fdefcd (patch) | |
tree | cf9b08b0d93ad443787c41278bf6f0f93f15646e | |
parent | aad8b9d10370b1dbc24ad2f4c226dd1510d7fc71 (diff) |
Auto-commit 2025-01-02
-rw-r--r-- | layouts/partials/content.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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:<!--more-->)" "" -}} -{{ $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 |