tpl: Alias tweet shortode to twitter

See #4765
This commit is contained in:
Bjørn Erik Pedersen
2018-05-24 11:24:38 +02:00
parent 6aa2c38507
commit 3bfe8f4be6
5 changed files with 19 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
{{- $pc := .Page.Site.Config.Privacy.Tweet -}}
{{- $pc := .Page.Site.Config.Privacy.Twitter -}}
{{- if not $pc.Disable -}}
{{ (getJSON "https://api.twitter.com/1/statuses/oembed.json?id=" (index .Params 0)).html | safeHTML }}
{{- end -}}