Make links absolute
This commit is contained in:
parent
0a76bfbedc
commit
a2c57f3c6a
|
@ -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 := "" -}}
|
||||
|
|
Reference in New Issue