Adding support for READINGS

This commit is contained in:
Lucas Cimon 2017-11-14 15:12:18 +01:00
parent ddc44e0742
commit 007ca25c47
No known key found for this signature in database
GPG Key ID: 08DA831E717571EE
2 changed files with 16 additions and 6 deletions

View File

@ -129,6 +129,9 @@ e.g.
**SUPPORTS**
An optional list of tuples (img_alt, url, logo_url, title)
**READINGS**
An optional list of `dict`, with `img_url` & `description` fields, of books you read, from most recent to oldest.
**ISSO_BASE_URL**
An optional URL to an [isso](https://posativ.org/isso/) endpoint (serving `/js/embed.dev.js`).

View File

@ -101,6 +101,12 @@
<div role="navigation" class="uk-width-medium-1-5 uk-hidden-small">
<div class="uk-panel uk-panel-box">
<h3 class="uk-panel-title">Syndication</h3>
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> ATOM</a>
{% if EXTRA_ATOM_FEED %}<a rel="alternate" type="application/atom+xml" href="{{ EXTRA_ATOM_FEED['url'] }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> {{ EXTRA_ATOM_FEED['name'] }}</a>{% endif %}
</div>
{% if SOCIAL %}
<div class="uk-panel uk-panel-box">
<h2 class="uk-panel-title">Ubiquité</h2>
@ -112,6 +118,13 @@
</div>
{% endif %}
{% if READINGS %}
<div class="uk-panel uk-panel-box">
<h2 class="uk-panel-title">En ce moment je lis</h2>
<img class="uk-thumbnail" src="{{ READINGS[0]['img_url'] }}" alt="{{ READINGS[0]['description'] }}" title="{{ READINGS[0]['description'] }}">
</div>
{% endif %}
<div class="uk-panel uk-panel-box">
<ul class="uk-nav uk-nav-side">
{% if CATEGORY_SAVE_AS %}
@ -146,12 +159,6 @@
</div>
{% endif %}
<div class="uk-panel uk-panel-box">
<h3 class="uk-panel-title">Receive Updates</h3>
<a rel="alternate" type="application/atom+xml" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> ATOM</a>
{% if EXTRA_ATOM_FEED %}<a rel="alternate" type="application/atom+xml" href="{{ EXTRA_ATOM_FEED['url'] }}" class="mg-feed"><i class="uk-icon-rss uk-icon-medium"></i> {{ EXTRA_ATOM_FEED['name'] }}</a>{% endif %}
</div>
{% if LINKS %}
<div class="uk-panel uk-panel-box">
<h3 class="uk-panel-title">Blogroll</h3>