mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2025-07-30 13:30:17 +00:00
Adding templates/past_readings.html
This commit is contained in:
@@ -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 %}
|
Reference in New Issue
Block a user