mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 16:30:28 -04:00
https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed some hacking is required to continue passing only the tweet ID to <amp-twitter data-tweetid="..."> at the same time. ugh. https://amp.dev/documentation/components/amp-twitter/#attributes
10 lines
207 B
HTML
10 lines
207 B
HTML
<amp-twitter
|
|
width="375"
|
|
height="472"
|
|
layout="responsive"
|
|
data-tweetid="{{ index (last 1 (split (index .Params 0) "/")) 0 }}"
|
|
data-lang="en"
|
|
data-align="center"
|
|
data-dnt="true">
|
|
</amp-twitter>
|