summaryrefslogtreecommitdiffstats
path: root/layouts/partials/templates/twitter_cards.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/templates/twitter_cards.html')
-rw-r--r--layouts/partials/templates/twitter_cards.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html
index 970c137..f271f5f 100644
--- a/layouts/partials/templates/twitter_cards.html
+++ b/layouts/partials/templates/twitter_cards.html
@@ -8,7 +8,11 @@
{{- end }}
{{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) -}}
- {{- $image := .Resources.GetMatch .Params.featured_image -}}
+
+ {{- $image := "" -}}
+ {{- with .Params.featured_image -}}
+ {{- $image := .Resources.GetMatch .Params.featured_image -}}
+ {{- end -}}
{{- if and .IsPage $image }}
<meta name="twitter:card" content="summary_large_image">