Adding templates/past_readings.html

This commit is contained in:
Lucas Cimon 2018-04-24 21:47:44 +02:00
parent 37b1adc7a5
commit 61ab33828b
No known key found for this signature in database
GPG Key ID: 6AF36E0DE97FE852
5 changed files with 29 additions and 8 deletions

View File

@ -66,7 +66,7 @@ If you want to use the theme with search enabled (and probably you want it).
```python
TAG_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
DIRECT_TEMPLATES = ('index', 'categories', 'archives')
DIRECT_TEMPLATES = ('index', 'categories', 'archives', 'past_readings')
```
If you want to use mg with search disabled.

View File

@ -392,7 +392,7 @@ a {
img.mg-avatar {
display: inline-block;
max-width: 48%;
padding: .3rem;
padding: 0.3rem;
}

View File

@ -307,7 +307,7 @@ a {
img.mg-avatar {
display: inline-block;
max-width: 48%;
padding: .3rem;
padding: 0.3rem;
}

View File

@ -54,7 +54,7 @@
{% endif %}
{% endblock %}
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/theme/bundle-SHORTSHA1-e07d6a1.css">
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/theme/bundle-SHORTSHA1-696f21a.css">
</head>
<body>
<!--[if lt IE 7]>
@ -127,10 +127,12 @@
{% endif %}
{% if READINGS %}
<a href="{{ SITEURL }}/past_readings.html">
<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>
</a>
{% endif %}
<div class="uk-panel uk-panel-box">

19
templates/past_readings.html Executable file
View File

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}Lectures passées{% endblock %}
{% block description %}{% endblock %}
{% block content %}
<div class="uk-width-medium-4-5">
<h1 class="uk-heading-large">Lectures passées</h1>
<div class="uk-grid">
{% for reading in READINGS %}
<figure class="uk-width-1-1 uk-width-small-1-2 uk-width-medium-1-3">
<img class="uk-thumbnail" src="{{ reading['img_url'] }}" alt="{{ reading['description'] }}">
<figcaption>{{ reading['description'] }}</figcaption>
</figure>
{% endfor %}
</div>
</div>
{% endblock %}