diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-13 01:34:57 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-13 01:34:57 +0200 |
| commit | 26d53eef3ab0d5644a73a1f3cf0b9480dd2fe459 (patch) | |
| tree | d4a7726e209f84633271beca403538819d8a3f64 /layouts/partials/templates/opengraph.html | |
| parent | e94f38a2a654d90860564bd865d5ee7b4994649e (diff) | |
| download | gohugo-theme-ed-26d53eef3ab0d5644a73a1f3cf0b9480dd2fe459.tar.gz | |
Rename `.Params.featured_image` to `.Params.featuredImage` Front Matter param
Diffstat (limited to 'layouts/partials/templates/opengraph.html')
| -rw-r--r-- | layouts/partials/templates/opengraph.html | 4 |
1 files changed, 2 insertions, 2 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 }}"> |
