summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--archetypes/default.md2
-rw-r--r--layouts/partials/schema.org/article.html4
-rw-r--r--layouts/partials/templates/opengraph.html4
-rw-r--r--layouts/partials/templates/twitter_cards.html4
5 files changed, 9 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a2737c0..46efc9c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
framework from `layouts/partials/scripts.html` to `layouts/partials/seo/ga.html`
- Use Google Site Tag tagging/analytics framework on production mode only
- Rename `.Params.caption` to `.Params.pageTitle` Front Matter param
+- Rename `.Params.featured_image` to `.Params.featuredImage` Front Matter param
+
### Removed
diff --git a/archetypes/default.md b/archetypes/default.md
index 28e0450..6d39e82 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -2,7 +2,7 @@
title: "{{ replace .File.ContentBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
-featured_image: ""
+featuredImage: ""
description: ""
rights: ""
author: ""
diff --git a/layouts/partials/schema.org/article.html b/layouts/partials/schema.org/article.html
index 0c47dc8..b193acb 100644
--- a/layouts/partials/schema.org/article.html
+++ b/layouts/partials/schema.org/article.html
@@ -19,8 +19,8 @@
"@type": "WebPage",
"@id": {{ .Permalink }}
},
- "headline": {{ partial "title.html" . | htmlUnescape }},{{ if .Params.featured_image }}
- {{ $image := .Resources.GetMatch .Params.featured_image -}}
+ "headline": {{ partial "title.html" . | htmlUnescape }},{{ if .Params.featuredImage }}
+ {{ $image := .Resources.GetMatch .Params.featuredImage -}}
"image": [
{{ $image.Permalink }}
],{{ end }}
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 }}