diff options
Diffstat (limited to 'layouts/partials/content.txt')
-rw-r--r-- | layouts/partials/content.txt | 5 |
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 |