diff --git a/layouts/_default/single.activity.ajson b/layouts/_default/single.activity.ajson index 4e0a1e3..f1f252f 100644 --- a/layouts/_default/single.activity.ajson +++ b/layouts/_default/single.activity.ajson @@ -12,7 +12,7 @@ {{- else -}} "type": "Note", {{ end -}} - "content": {{ partial "cleanedContent.json" . }}, + "content": {{ .Content | jsonify }}, {{- if .Params.images }} "attachment": [ {{ $delimiter := "" -}} diff --git a/layouts/partial/cleanedContent.json b/layouts/partial/cleanedContent.json deleted file mode 100644 index 8653b9a..0000000 --- a/layouts/partial/cleanedContent.json +++ /dev/null @@ -1 +0,0 @@ -{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | jsonify }} \ No newline at end of file