mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Fix broken test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{{- $pc := .Page.Site.Config.Privacy.Twitter -}}
|
||||
{{- if not $pc.Disable -}}
|
||||
{{ $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT }}
|
||||
{{ $json := getJSON $url }}
|
||||
{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}}
|
||||
{{- $json := getJSON $url -}}
|
||||
{{ $json.html | safeHTML }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user