aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2025-01-02 19:52:06 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2025-01-02 19:52:06 +0300
commit99deed9ef6ab7624d5485ed582de015fae6b578b (patch)
tree461f800fc2d4ba4cdfec4a09b54950106dfd8c09 /layouts/partials
parent876f3e0ae68f46791aeecdaed398dfc91389c3c8 (diff)
Auto-commit 2025-01-02
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/content.txt5
1 files changed, 5 insertions, 0 deletions
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:<!--more-->)" "" -}}
+{{ $content := $content | replaceRE `\!\[.*?\]\((.*?)\)` "$1" -}}
+{{ $content := $content | replaceRE `\[(.*?)\]\((.*?)\)` "$1 ($2)" -}}
+{{ $content }} \ No newline at end of file