aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/content.txt
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/content.txt')
-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