Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2020-01-07 19:18:47 +0300
committerBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2020-01-07 19:18:47 +0300
commit3b418e89d9ff5609ffd0665c0e0de052d2c7ab02 (patch)
tree237b780e1b69da2638343b6743b5f920b2a39fd9
parent34c87e231c0ae42887fe1826d03526d1e2b0d98c (diff)
fix issue with Tweet-Single
-rw-r--r--layouts/shortcodes/tweet-single.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/tweet-single.html b/layouts/shortcodes/tweet-single.html
index cb59946..5e16aa5 100644
--- a/layouts/shortcodes/tweet-single.html
+++ b/layouts/shortcodes/tweet-single.html
@@ -3,7 +3,8 @@
{{- if $pc.Simple -}}
{{ template "_internal/shortcodes/twitter_simple.html" . }}
{{- else -}}
-{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?hide_thread=1&id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}}
+{{- $tweetID := print (index .Params 0) -}}
+{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?hide_thread=1&id=%s&dnt=%t" $tweetID $pc.EnableDNT -}}
{{- $json := getJSON $url -}}
{{ $json.html | safeHTML }}
{{- end -}}