Skip to content

Commit 890cf66

Browse files
committed
rm author_class; change linkback var to home; updating config docs
1 parent 4f5a240 commit 890cf66

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

_includes/author-profile.html

+7-9
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,27 @@
1010
<div class="author__avatar">
1111
{% if author.avatar contains "://" %}
1212
{% assign author_src = author.avatar %}
13-
{% assign author_class = "" %}
1413
{% else %}
1514
{% assign author_src = author.avatar | absolute_url %}
16-
{% assign author_class = "author__avatar" %}
1715
{% endif %}
1816

19-
{% if author.linkback %}
20-
{% if author.linkback contains "://" %}
21-
{% assign author_link = author.linkback %}
17+
{% if author.home %}
18+
{% if author.home contains "://" %}
19+
{% assign author_link = author.home %}
2220
{% else %}
23-
{% assign author_link = author.linkback | absolute_url %}
21+
{% assign author_link = author.home | absolute_url %}
2422
{% endif %}
2523
<a href="{{ author_link }}">
26-
<img src="{{ author_src }}" class="{{ author_class }}" alt="{{ author.name }}" itemprop="image">
24+
<img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
2725
</a>
2826
{% else %}
29-
<img src="{{ author_src }}" class="{{ author_class }}" alt="{{ author.name }}" itemprop="image">
27+
<img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
3028
{% endif %}
3129
</div>
3230
{% endif %}
3331

3432
<div class="author__content">
35-
{% if author.linkback %}
33+
{% if author.home %}
3634
<a href="{{ author_link }}"><h3 class="author__name" itemprop="name">{{ author.name }}</h3></a>
3735
{% else %}
3836
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>

docs/_docs/05-configuration.md

+1
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ author:
636636
bio : "My awesome biography constrained to a sentence or two goes here."
637637
email : # optional
638638
uri : "http://your-site.com"
639+
home : # null (default), "absolute or relative url to link to author home"
639640
```
640641

641642
Social media links are all optional, include the ones you want visible. In most cases you just need to add the username. If you're unsure double check `_includes/author-profile.html` to see how the URL is constructed.

0 commit comments

Comments
 (0)