{{ with .Params.socialLinks.twitter }}
{{ if (and .id .user) }}
{{ end }}
{{ end }}
{{- define "render-tweet" -}}
{{- $url := printf "https://twitter.com/%v/status/%v" .user .id -}}
{{- $query := querify "url" $url "dnt" .dnt -}}
{{- $request := printf "https://publish.twitter.com/oembed?%s" $query -}}
{{- $json := getJSON $request -}}
{{- replaceRE "" "" $json.html | safeHTML -}}
{{- end -}}