1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 09:38:27 -04:00
jarv.is/layouts/shortcodes/tweet.atom.atom
Jake Jarvis 2909e934e7
rename atom shortcodes from .atom.xml to .atom.atom, and stop using symlinks
let's see if this fixes the issue of the wrong shortcode types (usually AMP) being chosen inconsistently
2020-07-19 12:29:51 -04:00

7 lines
234 B
Plaintext

{{- $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>