2013-07-29 20:09:35 +00:00
|
|
|
{% set name = author.name|trim() %}
|
|
|
|
{% if name in AUTHORS %}
|
|
|
|
{% set props = AUTHORS[name] %}
|
|
|
|
{% endif %}
|
2013-07-30 18:58:58 +00:00
|
|
|
<li class="row" itemprop="itemListElement" itemscope itemtype="http://schema.org/Person">
|
|
|
|
<meta itemprop="memberOf" content="{{ SITENAME }}" />
|
2013-07-29 20:09:35 +00:00
|
|
|
<div class="author">
|
|
|
|
<div class="small-4 columns">
|
|
|
|
<a class="th" href="{{ SITEURL }}/{{ author.url }}">
|
|
|
|
{% if props %}
|
|
|
|
{% for key, value in props.vcard if key == 'photo' %}
|
2013-07-30 18:58:58 +00:00
|
|
|
<img src="{{ value }}" itemprop="image" />
|
2013-07-29 20:09:35 +00:00
|
|
|
{% else %}
|
|
|
|
<img src="{{ SITEURL+'/'+FAVICON }}"/>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ SITEURL+'/'+FAVICON }}"/>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="small-12 columns">
|
|
|
|
<header>
|
|
|
|
<h3><a href="{{ SITEURL+'/'+author.url }}">{{ author }}</a></h3>
|
|
|
|
</header>
|
|
|
|
<ul class="vcard">
|
|
|
|
{% if props %}
|
2013-07-30 18:58:58 +00:00
|
|
|
{% for key, value in props.vcard %}
|
2013-07-29 20:09:35 +00:00
|
|
|
<li class="{{key}}">
|
2013-07-30 18:58:58 +00:00
|
|
|
{% if key == 'fn' %}
|
|
|
|
<span itemprop="name">{{ value }}</span>
|
|
|
|
{% elif key == 'email' %}
|
|
|
|
<a href="mailto:{{ value }}"itemprop="email">{{ value }}</a>
|
2013-07-29 20:09:35 +00:00
|
|
|
{% elif key == 'url' %}
|
2013-07-30 18:58:58 +00:00
|
|
|
<a href="{{ value }}" itemprop="sameAs">{{ value }}</a>
|
|
|
|
{% elif key == 'note' %}
|
|
|
|
<div itemprop="description" <p>{{ value }}</p>
|
|
|
|
{% elif key == 'tel' %}
|
|
|
|
<span itemprop="telephone">{{ value }}</span>
|
|
|
|
{% elif key =='title' %}
|
|
|
|
<span itemprop="jobTitle">{{ value }}</span>
|
|
|
|
{% elif key == 'org' %}
|
|
|
|
<span itemprop="affiliation">{{ value }}</span>
|
|
|
|
{% elif key == 'photo' %}
|
|
|
|
<img class="photo" src="{{ value }}"/>
|
2013-07-29 20:09:35 +00:00
|
|
|
{% else %}
|
2013-07-30 18:58:58 +00:00
|
|
|
<span itemprop="{{ key }}">{{ value }}</span>
|
2013-07-29 20:09:35 +00:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2013-07-30 18:58:58 +00:00
|
|
|
<li class="fn" itemprop="name">{{ author }}</li>
|
|
|
|
<li class="url"><a href="{{ SITEURL+'/'+author.url }}" itemprop="url" >{{ SITEURL+'/'+author.url }}</a></li>
|
2013-07-29 20:09:35 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% if props %}
|
|
|
|
<ul class="inline-list">
|
|
|
|
{% for network, url in props.social %}
|
|
|
|
<li><a href="{{ url }}"><i class="huge icon-{{ network }}"></i></a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-30 18:58:58 +00:00
|
|
|
</li>
|
|
|
|
|