Browse Source

Update

master
Jan-Lukas Else 7 months ago
parent
commit
0c383d3265
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      layouts/_default/single.activity.ajson
  2. +0
    -1
      layouts/partial/cleanedContent.json

+ 1
- 1
layouts/_default/single.activity.ajson View File

@ -12,7 +12,7 @@
{{- else -}}
"type": "Note",
{{ end -}}
"content": {{ partial "cleanedContent.json" . }},
"content": {{ .Content | jsonify }},
{{- if .Params.images }}
"attachment": [
{{ $delimiter := "" -}}


+ 0
- 1
layouts/partial/cleanedContent.json View File

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

Loading…
Cancel
Save