New style initial
This commit is contained in:
51
_includes/articleAuthor.njk
Normal file
51
_includes/articleAuthor.njk
Normal file
@@ -0,0 +1,51 @@
|
||||
<div class="author">
|
||||
{% if author %}
|
||||
{% if author.profilePic %}
|
||||
{% if author.url %}
|
||||
<a href="{{ author.url }}">
|
||||
{% endif %}
|
||||
<img class="profilePic" src="{{ author.profilePic }}">
|
||||
{% if author.url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<p>
|
||||
{% if author.url %}
|
||||
<a href="{{ author.url }}">
|
||||
{% endif %}
|
||||
{% if author.name %}
|
||||
<span class="authorName">{{ author.name }}</span>
|
||||
{% endif %}
|
||||
{% if author.url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if author.bio %}
|
||||
<br>{{ author.bio }}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% else %}
|
||||
{% if metadata.author.profilePic %}
|
||||
{% if metadata.author.url %}
|
||||
<a href="{{ metadata.author.url }}">
|
||||
{% endif %}
|
||||
<img class="profilePic" src="{{ metadata.author.profilePic }}">
|
||||
{% if metadata.author.url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<p>
|
||||
{% if metadata.author.url %}
|
||||
<a href="{{ metadata.author.url }}">
|
||||
{% endif %}
|
||||
{% if metadata.author.name %}
|
||||
<span class="authorName">{{ metadata.author.name }}</span>
|
||||
{% endif %}
|
||||
{% if metadata.author.url %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if metadata.author.bio %}
|
||||
<br>{{ metadata.author.bio }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user