github.com/fighterlyt/hugo@v0.47.1/tpl/tplimpl/embedded/templates/shortcodes/twitter.html (about)

     1  {{- $pc := .Page.Site.Config.Privacy.Twitter -}}
     2  {{- if not $pc.Disable -}}
     3  {{- if $pc.Simple -}}
     4  {{ template "_internal/shortcodes/twitter_simple.html" . }}
     5  {{- else -}}
     6  {{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}}
     7  {{- $json := getJSON $url -}}
     8  {{ $json.html | safeHTML }}
     9  {{- end -}}
    10  {{- end -}}