From 0807052d8e4e7feb53acdf4e4ae3ee94bf5f6de4 Mon Sep 17 00:00:00 2001 From: Will-Marriott Date: Mon, 17 Jun 2024 11:54:07 +0100 Subject: [PATCH 1/2] Added additional author section for each "secondary_author" in post. --- _layouts/post.html | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 79b3570..22470e8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -61,21 +61,44 @@
-
-
- {% include profile.html profile=page.profile author=page.author %} -
-
-

by {{ page.author }}

-

{{ page.role }}

+
+
+
+ {% include profile.html profile=page.profile author=page.author %} +
+
+

by {{ page.author }}

+

{{ page.role }}

+
+ {% if page.bio %} +
+
+ {{ page.bio }} +
+ {% endif %}
- {% if page.bio %} -
- {{ page.bio }} + {% for secondary_author in page.secondary_authors %} +
+
+
+ {% include profile.html profile=secondary_author.profile author=secondary_author.author %} +
+
+

by {{ secondary_author.author }}

+

{{ secondary_author.role }}

+
- {% endif %} + {% if secondary_author.bio %} +
+
+ {{ secondary_author.bio }} +
+ {% endif %} +
+ {% endfor %}
+
From a741076b23bf88419949a6aafbb2584a06c20892 Mon Sep 17 00:00:00 2001 From: Will-Marriott Date: Mon, 17 Jun 2024 11:55:03 +0100 Subject: [PATCH 2/2] Added "and others" to author name if secondary_authors. --- _includes/home_guide_promo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/home_guide_promo.html b/_includes/home_guide_promo.html index 9ed4535..48d8cd7 100644 --- a/_includes/home_guide_promo.html +++ b/_includes/home_guide_promo.html @@ -23,7 +23,7 @@

Read our Practitioner's Guides

{{ item.summary }}

{% include profile.html profile=item.profile author=item.author %} -

{{ item.author }}

+

{{ item.author }} {% if item.secondary_authors %}and others{% endif%}