diff --git a/site/layouts/index.html b/site/layouts/index.html index 7e44feb6..f53e3653 100644 --- a/site/layouts/index.html +++ b/site/layouts/index.html @@ -123,11 +123,13 @@
- {{ range sort .Site.Data.twitter "order" }} -
- {{ partial "widget/tweet.html" . }} -
- {{ end }} + {{- if isset .Site.Data "twitter" }} + {{- range sort .Site.Data.twitter "order" }} +
+ {{ partial "widget/tweet.html" . }} +
+ {{- end }} + {{- end }}