diff options
Diffstat (limited to 'layouts/partials/templates')
| -rw-r--r-- | layouts/partials/templates/opengraph.html | 4 | ||||
| -rw-r--r-- | layouts/partials/templates/twitter_cards.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 89f1797..627605e 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -6,8 +6,8 @@ {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) -}} -{{- if and .IsPage .Params.featured_image -}} - {{- $image := .Resources.GetMatch .Params.featured_image }} +{{- if and .IsPage .Params.featuredImage -}} + {{- $image := .Resources.GetMatch .Params.featuredImage }} <meta property="og:image" content="{{ $image.Permalink }}"> <meta property="og:image:width" content="{{ $image.Width }}"> <meta property="og:image:height" content="{{ $image.Height }}"> diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html index 23c033b..40a6c3d 100644 --- a/layouts/partials/templates/twitter_cards.html +++ b/layouts/partials/templates/twitter_cards.html @@ -9,8 +9,8 @@ {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) -}} - {{- if and .IsPage .Params.featured_image }} - {{- $image := .Resources.GetMatch .Params.featured_image }} + {{- if and .IsPage .Params.featuredImage }} + {{- $image := .Resources.GetMatch .Params.featuredImage }} <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:image" content="{{ $image.Permalink }}"> {{- else }} |
