mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:58:28 -04:00
let's see if this fixes the issue of the wrong shortcode types (usually AMP) being chosen inconsistently
7 lines
234 B
XML
7 lines
234 B
XML
{{- $url := printf "https://publish.twitter.com/oembed?lang=en&omit_script=true&dnt=true&align=center&url=%s" (index .Params 0 | safeURL) -}}
|
|
{{- $json := getJSON $url -}}
|
|
|
|
<div class="embed tweet">
|
|
{{ $json.html | safeHTML }}
|
|
</div>
|