1
Fork 0

Make links absolute

This commit is contained in:
Jan-Lukas Else 2020-03-04 09:38:15 +01:00
parent 0a76bfbedc
commit a2c57f3c6a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
{{- else -}}
"type": "Note",
{{ end -}}
"content": {{ (htmlUnescape .Content | safeHTML) | jsonify }},
"content": {{ ((htmlUnescape .Content | safeHTML) | replaceRE "href=\"/([^\"]*)\"" ( printf "href=\"%s$1\"" ( "" | absURL ) ) ) | jsonify }},
{{- if .Params.images }}
"attachment": [
{{ $delimiter := "" -}}