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 6611e6d fix: content.uri may be empty.
6611e6d is described below
commit 6611e6d98796404de8fab69f63a4a40a1f42467a
Author: Benjamin Marwell <[email protected]>
AuthorDate: Fri Oct 15 15:19:49 2021 +0200
fix: content.uri may be empty.
---
jbake/templates/header.ftl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/jbake/templates/header.ftl b/jbake/templates/header.ftl
index 2e2709f..a015258 100644
--- a/jbake/templates/header.ftl
+++ b/jbake/templates/header.ftl
@@ -88,7 +88,9 @@
</#list>
</#if>
<meta property="og:locale" content="en_US" />
+ <#if (content.uri)??>
<meta property="og:url" content='${config.site_host}/${content.uri}'/>
+ <#else></#if>
<#-- custom featured image if it exists or default featured image. -->
<#if (content.featuredimage)?? >
<#if (content.featuredimage)?starts_with("http")>