Guide_Wii/_includes/author-profile.html

253 lines
9.7 KiB
HTML
Raw Normal View History

{% assign author = page.author | default: page.authors[0] | default: site.author %}
{% assign author = site.data.authors[author] | default: author %}
2016-10-30 01:02:14 +02:00
<div itemscope itemtype="https://schema.org/Person">
2016-10-30 01:02:14 +02:00
2016-11-23 02:29:35 +01:00
{% if author.avatar %}
<div class="author__avatar">
{% if author.home %}
<a href="{{ author.home | relative_url }}">
<img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image">
</a>
2016-11-23 02:29:35 +01:00
{% else %}
<img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image">
2016-11-23 02:29:35 +01:00
{% endif %}
</div>
{% endif %}
2016-10-30 01:02:14 +02:00
<div class="author__content">
{% if author.home %}
<a href="{{ author.home | relative_url }}"><h3 class="author__name" itemprop="name">{{ author.name }}</h3></a>
{% else %}
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
{% endif %}
2016-11-23 02:29:35 +01:00
{% if author.bio %}
<div class="author__bio" itemprop="description">
{{ author.bio | markdownify }}
</div>
2016-11-23 02:29:35 +01:00
{% endif %}
2016-10-30 01:02:14 +02:00
</div>
<div class="author__urls-wrapper">
<button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
<ul class="author__urls social-icons">
{% if author.location %}
<li itemprop="homeLocation" itemscope itemtype="https://schema.org/Place">
<i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name">{{ author.location }}</span>
2016-11-23 02:29:35 +01:00
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2016-11-23 02:29:35 +01:00
{% if author.links %}
{% for link in author.links %}
{% if link.label and link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i><span class="label">{{ link.label }}</span></a></li>
{% endif %}
{% endfor %}
{% endif %}
2016-10-30 01:02:14 +02:00
{% if author.uri %}
2016-11-23 02:29:35 +01:00
<li>
<a href="{{ author.uri }}" itemprop="url">
<i class="fas fa-fw fa-link" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].website_label | default: "Website" }}</span>
2016-11-23 02:29:35 +01:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2016-11-23 02:29:35 +01:00
2016-10-30 01:02:14 +02:00
{% if author.email %}
2016-11-23 02:29:35 +01:00
<li>
<a href="mailto:{{ author.email }}">
<meta itemprop="email" content="{{ author.email }}" />
<i class="fas fa-fw fa-envelope-square" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span>
2016-11-23 02:29:35 +01:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2016-11-23 02:29:35 +01:00
2016-10-30 01:02:14 +02:00
{% if author.keybase %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://keybase.io/{{ author.keybase }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fas fa-fw fa-key" aria-hidden="true"></i><span class="label">Keybase</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.twitter %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i><span class="label">Twitter</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.facebook %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.facebook.com/{{ author.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i><span class="label">Facebook</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.linkedin %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span class="label">LinkedIn</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.xing %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.xing.com/profile/{{ author.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-xing-square" aria-hidden="true"></i><span class="label">XING</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.instagram %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://instagram.com/{{ author.instagram }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-instagram" aria-hidden="true"></i><span class="label">Instagram</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.tumblr %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://{{ author.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i><span class="label">Tumblr</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.bitbucket %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://bitbucket.org/{{ author.bitbucket }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i><span class="label">Bitbucket</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.github %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://github.com/{{ author.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-github" aria-hidden="true"></i><span class="label">GitHub</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
{% if author.gitlab %}
<li>
<a href="https://gitlab.com/{{ author.gitlab }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-gitlab" aria-hidden="true"></i><span class="label">GitLab</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
{% endif %}
2016-10-30 01:02:14 +02:00
{% if author.stackoverflow %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-stack-overflow" aria-hidden="true"></i><span class="label">Stack Overflow</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.lastfm %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://last.fm/user/{{ author.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i><span class="label">Last.fm</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.dribbble %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://dribbble.com/{{ author.dribbble }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-dribbble" aria-hidden="true"></i><span class="label">Dribbble</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.pinterest %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.pinterest.com/{{ author.pinterest }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-pinterest" aria-hidden="true"></i><span class="label">Pinterest</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.foursquare %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://foursquare.com/{{ author.foursquare }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-foursquare" aria-hidden="true"></i><span class="label">Foursquare</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.steam %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://steamcommunity.com/id/{{ author.steam }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-steam" aria-hidden="true"></i><span class="label">Steam</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.youtube %}
2017-10-28 21:58:34 +02:00
{% if author.youtube contains "://" %}
<li>
<a href="{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
{% elsif author.youtube %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
{% endif %}
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.soundcloud %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://soundcloud.com/{{ author.soundcloud }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-soundcloud" aria-hidden="true"></i><span class="label">SoundCloud</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.weibo %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.weibo.com/{{ author.weibo }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-weibo" aria-hidden="true"></i><span class="label">Weibo</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.flickr %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://www.flickr.com/{{ author.flickr }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-flickr" aria-hidden="true"></i><span class="label">Flickr</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.codepen %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://codepen.io/{{ author.codepen }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-codepen" aria-hidden="true"></i><span class="label">CodePen</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
2016-10-30 01:02:14 +02:00
{% if author.vine %}
2017-10-28 21:58:34 +02:00
<li>
<a href="https://vine.co/u/{{ author.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
<i class="fab fa-fw fa-vine" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span>
2017-10-28 21:58:34 +02:00
</a>
</li>
2016-10-30 01:02:14 +02:00
{% endif %}
2017-10-28 21:58:34 +02:00
{% include author-profile-custom-links.html %}
2016-10-30 01:02:14 +02:00
</ul>
</div>
</div>