1
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:
2020-06-27 23:09:42 -04:00
parent 3eb37e588e
commit 0b98f51a74
3 changed files with 4 additions and 11 deletions

View File

@@ -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">