Fix Google Plus author link
This commit is contained in:
parent
cf9a908697
commit
d6be62720d
@ -1,12 +1,12 @@
|
|||||||
{% if page.author and site.data.authors[page.author] %}
|
{% if page.author and site.data.authors[page.author] %}
|
||||||
{% assign author = site.data.authors[page.author] %}
|
{% assign author = site.data.authors[page.author] %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign author = site.author %}
|
{% assign author = site.author %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div itemscope itemtype="http://schema.org/Person">
|
<div itemscope itemtype="http://schema.org/Person">
|
||||||
|
|
||||||
{% if author.avatar %}
|
{% if author.avatar %}
|
||||||
<div class="author__avatar">
|
<div class="author__avatar">
|
||||||
{% if author.avatar contains "://" %}
|
{% if author.avatar contains "://" %}
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}" itemprop="image">
|
<img src="{{ author.avatar }}" alt="{{ author.name }}" itemprop="image">
|
||||||
@ -14,18 +14,18 @@
|
|||||||
<img src="{{ author.avatar | absolute_url }}" class="author__avatar" alt="{{ author.name }}" itemprop="image">
|
<img src="{{ author.avatar | absolute_url }}" class="author__avatar" alt="{{ author.name }}" itemprop="image">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="author__content">
|
<div class="author__content">
|
||||||
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
|
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
|
||||||
{% if author.bio %}
|
{% if author.bio %}
|
||||||
<p class="author__bio" itemprop="description">
|
<p class="author__bio" itemprop="description">
|
||||||
{{ author.bio }}
|
{{ author.bio }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="author__urls-wrapper">
|
<div class="author__urls-wrapper">
|
||||||
<button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
|
<button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
|
||||||
<ul class="author__urls social-icons">
|
<ul class="author__urls social-icons">
|
||||||
{% if author.location %}
|
{% if author.location %}
|
||||||
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
{% if author.google_plus %}
|
{% if author.google_plus %}
|
||||||
<li>
|
<li>
|
||||||
<a href="https://plus.google.com/+{{ author.google_plus }}" itemprop="sameAs">
|
<a href="https://plus.google.com/{{ author.google_plus }}" itemprop="sameAs">
|
||||||
<i class="fa fa-fw fa-google-plus-square" aria-hidden="true"></i> Google+
|
<i class="fa fa-fw fa-google-plus-square" aria-hidden="true"></i> Google+
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -245,5 +245,5 @@
|
|||||||
|
|
||||||
{% include author-profile-custom-links.html %}
|
{% include author-profile-custom-links.html %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user