Browse Source

Update

master
Jan-Lukas Else 10 months ago
parent
commit
0c383d3265
  1. 2
      layouts/_default/single.activity.ajson
  2. 1
      layouts/partial/cleanedContent.json

2
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 := "" -}}

1
layouts/partial/cleanedContent.json

@ -1 +0,0 @@
{{ (( htmlUnescape .Content | safeHTML ) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | jsonify }}
Loading…
Cancel
Save