more shortcode tweaks for valid RSS

This commit is contained in:
2019-12-15 14:06:00 -05:00
parent 77f3233702
commit 951c5f2c3f
7 changed files with 49 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
{{- /* Modified from /tpl/tplimpl/embedded/templates/shortcodes/twitter.html to fetch tweet without script (&omit_script=1) */ -}}
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%d&omit_script=true" (index .Params 0) -}}
{{- $json := getJSON $url -}}
{{- $json.html | safeHTML -}}