From 45d238e58d2212e25d73ef6c1b7a4ed1bdea9723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=A7=89=20infominer?= Date: Wed, 25 Nov 2020 14:12:20 -0500 Subject: [PATCH] add authors snippet --- _includes/authors-list.html | 19 +++++++++++++++++++ _includes/page__taxonomy.html | 4 ++++ _pages/values.md | 3 +++ _posts/blockchain/2020-11-17-dragonchain.md | 4 +++- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 _includes/authors-list.html diff --git a/_includes/authors-list.html b/_includes/authors-list.html new file mode 100644 index 00000000..d4b8a972 --- /dev/null +++ b/_includes/authors-list.html @@ -0,0 +1,19 @@ +

+ Authors: + {% assign authorCount = page.authors | size %} + {% if authorCount == 0 %} + No author + {% elsif authorCount == 1 %} + {{ page.authors | first }} + {% else %} + {% for author in page.authors %} + {% if forloop.first %} + + {% elsif forloop.last %} + and + {% else %} + , + {% endif %} + {% endfor %} + {% endif %} +

diff --git a/_includes/page__taxonomy.html b/_includes/page__taxonomy.html index 75c76c81..9003980e 100644 --- a/_includes/page__taxonomy.html +++ b/_includes/page__taxonomy.html @@ -1,3 +1,7 @@ +{% if page.authors %} + {% include authors-list.html %} +{% endif %} + {% if site.tag_archive.type and page.tags[0] %} {% include tag-list.html %} {% endif %} diff --git a/_pages/values.md b/_pages/values.md index ce30b868..e8af2b69 100644 --- a/_pages/values.md +++ b/_pages/values.md @@ -7,6 +7,9 @@ redirect_from: - values - values/ toc: false +authors: + - "Juan Caballero" + - "Infominer" --- Decentralized-id.com is a collaborative, participatory learning community oriented that strives to support the elaboration and adoption of a self-sovereign identity layer for the internet. This is a labor of love and a work in progress. Certain values undergird those who share in this work. Our Aim: diff --git a/_posts/blockchain/2020-11-17-dragonchain.md b/_posts/blockchain/2020-11-17-dragonchain.md index 19b4c2ea..d2e2e7d5 100644 --- a/_posts/blockchain/2020-11-17-dragonchain.md +++ b/_posts/blockchain/2020-11-17-dragonchain.md @@ -14,7 +14,9 @@ header: og_image: /images/dragon_factor_og.webp last_modified_at: 2020-11-17 toc: true -# • +authors: + - "Holly Jolly Jeffrey" + - "Joe Roets" --- Guest post by [Holly Jolly Jeffrey](https://twitter.com/hodldrgn) ([Linkedin](https://www.linkedin.com/in/jeffrey-neijenhuis/)) and Dragonchain Founder\CEO [Joe Roets](https://www.linkedin.com/in/j0j0r0/).