_includes/single-author.html in jasper-theme-0.0.1 vs _includes/single-author.html in jasper-theme-0.0.2
- old
+ new
@@ -1,24 +1,22 @@
{% assign writer = site.data.authors[page.author] %}
<section class="author-card">
- {% assign writer_image = writer.image | slice: 0, 5 %}
- {% if writer_image == "https" %}
- <img class="author-profile-image" src="{{writer.image}}" alt="{{writer.name}}"/>
- {% else %}
- <span class="avatar-wrapper">
- {% include icons/avatar.svg %}
- </span>
- {% endif %}
+
+ {% assign author_url = "/author/" %}
+ {% include author-icon.html %}
+
<section class="author-card-content">
<h4 class="author-card-name">
- <a href="/author/{{writer.user_name}}">{{writer.name}}</a>
+ <a href="{{ writer.user_name | prepend: author_url | relative_url }}">{{ writer.name }}</a>
</h4>
+
{% if writer.bio %}
- <p>{{writer.bio}}</p>
+ <p>{{ writer.bio }}</p>
{% else %}
- <p>Read <a href="/author/{{writer.user_name}}">more posts</a> by this author.</p>
+ <p>Read <a href="{{ writer.user_name | prepend: author_url | relative_url }}">more posts</a> by this author.</p>
{% endif %}
+
</section>
</section>
<div class="post-full-footer-right">
- <a class="author-card-button" href="/author/{{writer.user_name}}">Read More</a>
-</div>
\ No newline at end of file
+ <a class="author-card-button" href="{{ writer.user_name | prepend: author_url | relative_url }}">Read More</a>
+</div>