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.txt3
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