mirror of
https://github.com/arsenetar/pelican-red.git
synced 2024-11-22 11:19:02 +00:00
Andrew Senetar
b7efae362c
The templates in this commit are now in RC form. Everything but the article templates are ready. Changes include ( no limited to ): - Update stylesheet - Add method in app.js to handle images in documents - Create _author_item.html to display author information and vcard - Update _disqus.html to fit in with site style - Update _page_footer.html for translation support - Add _pagination.html for pagination support - Add _translations.html for translation listing support - Minor updates to archives.html, tags.html - Update base.html to have more flexibility - Update authors.html and author.html to display information - Update category.html and categories.html to use the _list_item.html - Update page translation support + misc - Update tag.html to use _list_item.html
53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
{% set name = author.name|trim() %}
|
|
{% if name in AUTHORS %}
|
|
{% set props = AUTHORS[name] %}
|
|
{% endif %}
|
|
<li class="row">
|
|
<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' %}
|
|
<img src="{{ value }}" />
|
|
{% 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 %}
|
|
{% for key, value in props.vcard if not key == 'photo' %}
|
|
<li class="{{key}}">
|
|
{% if key == 'email' %}
|
|
<a href="mailto:{{ value }}">{{ value }}</a>
|
|
{% elif key == 'url' %}
|
|
<a href="{{ value }}">{{ value }}</a>
|
|
{% elif key == 'notes' %}
|
|
<p>{{ value }}</p>
|
|
{% else %}
|
|
{{ value }}
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
<li class="fn">{{ author }}</li>
|
|
<li class="url"><a href="{{ SITEURL+'/'+author.url }}">{{ SITEURL+'/'+author.url }}</a></li>
|
|
{% 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>
|
|
</li> |