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:04:23 UTC

[shiro-site] 01/02: fix and enhance author data.

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 212926abff66dbe8f1867c008c2be180a9c7bc6a
Author: Benjamin Marwell <bm...@apache.org>
AuthorDate: Fri Oct 22 13:02:02 2021 +0200

    fix and enhance author data.
---
 .../blog/2020/05/25/feathercast-with-brian-demers.adoc        |  1 +
 jbake/data/authors.yaml                                       | 10 ++++++++++
 jbake/templates/header.ftl                                    | 11 ++++++++++-
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/jbake/content/blog/2020/05/25/feathercast-with-brian-demers.adoc b/jbake/content/blog/2020/05/25/feathercast-with-brian-demers.adoc
index 2062089..229828a 100644
--- a/jbake/content/blog/2020/05/25/feathercast-with-brian-demers.adoc
+++ b/jbake/content/blog/2020/05/25/feathercast-with-brian-demers.adoc
@@ -1,4 +1,5 @@
 = Feathercast with Brian Demers
+:jbake-author: Benjamin Marwell
 :jbake-date: 2020-05-25
 :jbake-type: post
 :jbake-status: published
diff --git a/jbake/data/authors.yaml b/jbake/data/authors.yaml
index 70bb333..581ba0e 100644
--- a/jbake/data/authors.yaml
+++ b/jbake/data/authors.yaml
@@ -1,13 +1,23 @@
 authors:
 
   Benjamin Marwell:
+    first_name: Benjamin
+    last_name: Marwell
     twitter: "@bmarwell"
+    facebook: "https://www.facebook.com/bmarwell"
 
   Brian Demers:
+    first_name: Brian
+    last_name: Demers
     twitter: "@briandemers"
 
   François Papon:
+    first_name: François
+    last_name: Papon
     twitter: "@fpapon2"
 
   Les Hazlewood:
+    first_name: Les
+    last_name: Hazlewood
     twitter: "@lhazlewood"
+    facebook: "https://www.facebook.com/les.hazlewood"
diff --git a/jbake/templates/header.ftl b/jbake/templates/header.ftl
index a015258..133a3cb 100644
--- a/jbake/templates/header.ftl
+++ b/jbake/templates/header.ftl
@@ -62,12 +62,21 @@
           <#if (authors[content.author?trim].twitter)??>
     <meta name="twitter:creator" content="${authors[content.author].twitter}" />
           </#if>
+          <#if (authors[content.author?trim].facebook)??>
+    <meta property="article:author" content="${authors[content.author].facebook}" />
+          </#if>
+          <#if (authors[content.author?trim].first_name)??>
+    <meta property="profile:first_name" content="${authors[content.author].first_name}" />
+          </#if>
+          <#if (authors[content.author?trim].last_name)??>
+    <meta property="profile:last_name" content="${authors[content.author].last_name}" />
+          </#if>
         </#if>
       <#-- fall through -->
       <#case "page">
     <meta property="og:type" content="article"/>
     <#if (content.twittercard!"")?trim == "large">
-      <meta name="twitter:card" content="summary_large_image" />
+    <meta name="twitter:card" content="summary_large_image" />
     <#else>
       <meta name="twitter:card" content="summary" />
     </#if>