diff options
Diffstat (limited to 'tpl/tplimpl/embedded/templates/shortcodes/twitter.html')
-rwxr-xr-x | tpl/tplimpl/embedded/templates/shortcodes/twitter.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/tplimpl/embedded/templates/shortcodes/twitter.html b/tpl/tplimpl/embedded/templates/shortcodes/twitter.html new file mode 100755 index 000000000..d9bef725f --- /dev/null +++ b/tpl/tplimpl/embedded/templates/shortcodes/twitter.html @@ -0,0 +1,4 @@ +{{- $pc := .Page.Site.Config.Privacy.Twitter -}} +{{- if not $pc.Disable -}} +{{ (getJSON "https://api.twitter.com/1/statuses/oembed.json?id=" (index .Params 0)).html | safeHTML }} +{{- end -}}
\ No newline at end of file |