1
Fork 0
This commit is contained in:
Jan-Lukas Else 2020-06-23 20:50:19 +02:00
parent 379e7423e0
commit 0c383d3265
2 changed files with 1 additions and 2 deletions

View File

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

View File

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