Skip to content

Commit

Permalink
Merge pull request #14 from Will-Marriott/main
Browse files Browse the repository at this point in the history
Added multi-author functionality.
  • Loading branch information
ColinEberhardt authored Jul 30, 2024
2 parents 31fac99 + a741076 commit 30558e1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _includes/home_guide_promo.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2 class="mt-0 mb-0 pt-0 pb-0 lift">Read our Practitioner's Guides</h2>
<p class="summary">{{ item.summary }}</p>
<div class="guide-promo-profile">
{% include profile.html profile=item.profile author=item.author %}
<p class="bold">{{ item.author }}</p>
<p class="bold">{{ item.author }} {% if item.secondary_authors %}and others{% endif%}</p>
</div>
</div>
</div>
Expand Down
45 changes: 34 additions & 11 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,44 @@
</div>
</div>
<div id="right-column">
<div id="guide-profile">
<div>
{% include profile.html profile=page.profile author=page.author %}
</div>
<div id="guide-profile-about">
<p class="pt-0 mb-0 pb-0">by {{ page.author }}</p>
<p class="mt-0 pt-0 mb-0 pb-0 bold underline-turquoise">{{ page.role }}</p>
<div class="author-section">
<div id="guide-profile">
<div>
{% include profile.html profile=page.profile author=page.author %}
</div>
<div id="guide-profile-about">
<p class="pt-0 mb-0 pb-0">by {{ page.author }}</p>
<p class="mt-0 pt-0 mb-0 pb-0 bold underline-turquoise">{{ page.role }}</p>
</div>
</div>
{% if page.bio %}
<div id="bio">
<br>
{{ page.bio }}
</div>
{% endif %}
</div>
{% if page.bio %}
<div id="bio">
{{ page.bio }}
{% for secondary_author in page.secondary_authors %}
<div class="author-section">
<div style="display: flex; gap: 1rem;">
<div>
{% include profile.html profile=secondary_author.profile author=secondary_author.author %}
</div>
<div style="flex-direction: column;">
<p class="pt-0 mb-0 pb-0">by {{ secondary_author.author }}</p>
<p class="mt-0 pt-0 mb-0 pb-0 bold underline-turquoise">{{ secondary_author.role }}</p>
</div>
</div>
{% endif %}
{% if secondary_author.bio %}
<div style="width: 235px;">
<br>
{{ secondary_author.bio }}
</div>
{% endif %}
</div>
{% endfor %}
</div>

</div>
</div>
</div>
Expand Down

0 comments on commit 30558e1

Please sign in to comment.