You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bm...@apache.org on 2021/10/22 11:27:09 UTC
[shiro-site] 01/01: add publish_date
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
commit ed49e67daa4f31ceda9e2f857c93c8c15891a149
Author: Benjamin Marwell <bm...@apache.org>
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..467bc37 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.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>