mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
4
tpl/tplimpl/embedded/templates/shortcodes/twitter.html
Executable file
4
tpl/tplimpl/embedded/templates/shortcodes/twitter.html
Executable file
@@ -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 -}}
|
Reference in New Issue
Block a user