Skip to content

Commit

Permalink
testing multiple authorship hack of jekyl code mmistakes/minimal-mist…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew J Severin committed May 1, 2019
1 parent 9a161fb commit 1a84563
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions _includes/author-profile.html
@@ -1,8 +1,19 @@
{% assign author = page.author | default: page.authors[0] | default: site.author %}
{% assign author = site.data.authors[author] | default: author %}
{% assign authorCount = page.authors | size %}
{% if authorCount == 0 %}
{% if page.author and site.data.authors[page.author] %}
{% assign author = site.data.authors[page.author] %}
{% else %}
{% assign author = site.author %}
{% endif %}

<div itemscope itemtype="http://schema.org/Person">
{% assign authors = {{author.authorid | split: "," }} %}
{% else %}
{% assign authors = page.authors %}
{% endif %}

<div itemscope itemtype="http://schema.org/Person">
{% for authorid in authors %}
<p>
{% if author.avatar %}
<div class="author__avatar">
{% if author.avatar contains "://" %}
Expand Down Expand Up @@ -260,4 +271,6 @@ <h3 class="author__name" itemprop="name">{{ author.name }}</h3>
{% include author-profile-custom-links.html %}
</ul>
</div>
</p>
{% endfor %}
</div>

0 comments on commit 1a84563

Please sign in to comment.