mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-18 21:45:31 -04:00
switch tweet embed centering to recommended method:
https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/overview
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=1&omit_script=1" (index .Params 0) -}}
|
||||
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%v&dnt=1&omit_script=1&align=center" (index .Params 0) -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
|
||||
<div class="embed tweet">
|
||||
|
Reference in New Issue
Block a user