mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-21 16:02:40 +00:00
Adding templates/past_readings.html
This commit is contained in:
parent
37b1adc7a5
commit
61ab33828b
@ -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.
|
||||
|
@ -392,7 +392,7 @@ a {
|
||||
img.mg-avatar {
|
||||
display: inline-block;
|
||||
max-width: 48%;
|
||||
padding: .3rem;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
|
@ -307,7 +307,7 @@ a {
|
||||
img.mg-avatar {
|
||||
display: inline-block;
|
||||
max-width: 48%;
|
||||
padding: .3rem;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 %}
|
||||
<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 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
19
templates/past_readings.html
Executable 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 %}
|
Loading…
Reference in New Issue
Block a user