From 8bf54664ade4d3e5ca600fb92cc939bf954e4d24 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Thu, 3 Jan 2019 13:16:08 -0500 Subject: [PATCH] Add alt text to featured images using featuredImageDescription parameter --- archetypes/post.md | 1 + layouts/_default/li.html | 2 +- layouts/_default/single.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/archetypes/post.md b/archetypes/post.md index f1f3e58..9aee58e 100644 --- a/archetypes/post.md +++ b/archetypes/post.md @@ -4,6 +4,7 @@ date: {{ .Date }} description: "" categories: [] featuredImage: "" +featuredImageDescription: "" dropCap: true displayInMenu: false displayInList: true diff --git a/layouts/_default/li.html b/layouts/_default/li.html index e617772..7f1f563 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -2,7 +2,7 @@ href="{{ .Permalink }}" class="card blog-card" rel="bookmark" > {{ if isset .Params "featuredimage" }}
- +
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 116d9a5..d5d7619 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,7 +11,7 @@ {{ if isset .Params "featuredimage" }}
- +
{{ end }} {{ .Content }}