This is an automated email from the ASF dual-hosted git repository.
bmarwell pushed a commit to branch jbake
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
The following commit(s) were added to refs/heads/jbake by this push:
new 62f3ecc fix featured image og: and twitter:
new ed07bb0 Merge pull request #123 from bmarwell/jbake-fix-featured-image
62f3ecc is described below
commit 62f3ecc0aaea6d7eb3818c0bb349b4fede91d0ac
Author: Benjamin Marwell <[email protected]>
AuthorDate: Thu Oct 14 21:42:21 2021 +0200
fix featured image og: and twitter:
---
jbake/templates/header.ftl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/jbake/templates/header.ftl b/jbake/templates/header.ftl
index c753418..822246d 100644
--- a/jbake/templates/header.ftl
+++ b/jbake/templates/header.ftl
@@ -89,7 +89,8 @@
<#else></#if>
<#-- custom featured image if it exists or default featured image. -->
<#if (content.featuredimage)?? >
- <meta property="og:image"
content="${content.rootpath!""}${content.featuredimage}"/>
+ <meta property="og:image" content="${content.featuredimage}"/>
+ <meta property="twitter:image" content="${content.featuredimage}"/>
<#if (content.featuredimagewidth)??>
<meta property="og:image:width" content="${content.featuredimagewidth}"/>
</#if>