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 8738332 add publish_date
8738332 is described below
commit 873833209b73e2a870df67c55bd4a65e3a129414
Author: Benjamin Marwell <[email protected]>
AuthorDate: Fri Oct 22 13:25:48 2021 +0200
add publish_date
---
jbake/templates/header.ftl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/jbake/templates/header.ftl b/jbake/templates/header.ftl
index 133a3cb..58aa6eb 100644
--- a/jbake/templates/header.ftl
+++ b/jbake/templates/header.ftl
@@ -56,6 +56,7 @@
<#case "post">
<#if (content.date)??>
<meta property="article:published_time"
content="${content.date?date?string.iso}"/>
+ <meta name="publish_date" property="og:publish_date"
content="${content.published_date?date?string.iso}"/>
</#if>
<#if (content.author!"") != "">
<#assign authors = data.get('authors.yaml').authors>
@@ -86,6 +87,7 @@
</#if>
<#if (content.published_date)??>
<meta property="article:published_time"
content="${content.published_date?date?string.iso}"/>
+ <meta name="publish_date" property="og:publish_date"
content="${content.published_date?date?string.iso}"/>
</#if>
<#break>
<#default>