Initial import.
3
.babelrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"presets": ["es2015-node6", "stage-0"]
|
||||
}
|
8
.eslintrc.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
"parser": "babel-eslint",
|
||||
"extends": "standard",
|
||||
"plugins": [
|
||||
"standard",
|
||||
"babel"
|
||||
]
|
||||
};
|
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
dist
|
||||
node_modules
|
||||
|
27
NOTES.org
Normal file
|
@ -0,0 +1,27 @@
|
|||
#+TODO: TODO WAIT | DONE
|
||||
* Tasks
|
||||
** DONE Remove the hour on show dates when 00:00
|
||||
** TODO Add missing posters
|
||||
- None for /Le train sifflera/
|
||||
- None for /Oscar/
|
||||
- None for /La famille Pugilat/
|
||||
- None for /Venise sous la neige/
|
||||
- None for /Les fourberies de Scapin/
|
||||
** TODO Add background color update on shows list hover
|
||||
** TODO Improve the page title so that it remains readable on all photos
|
||||
** DONE Remove the use of data-markdown
|
||||
* Agenda
|
||||
** TODO Forma the agenda entries
|
||||
** TODO Put some current show photo on the Agenda page
|
||||
** TODO Put the place on the Agenda page
|
||||
* Tasks to be sorted
|
||||
** TODO Update the shows layout to deduce display date from metadata
|
||||
** TODO Introduce back less
|
||||
** TODO Why are tags handled with data-markdown duplicated?
|
||||
** TODO Fix the layout on mobile and other displays
|
||||
** TODO Automatically build the poster path from the show title.
|
||||
** TODO How to instruct node.js to use a dependency from a dependency?
|
||||
This is not the way node is working. Perhaps should be using bower
|
||||
for this?
|
||||
** TODO Introduce the RSS production.
|
||||
** TODO Introduce pagination in shows and news listing.
|
5
content/403.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "403"
|
||||
---
|
||||
|
||||
# Accès interdit
|
5
content/404.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "404"
|
||||
---
|
||||
|
||||
# Page non trouvée
|
6
content/agenda.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Agenda
|
||||
layout: agenda.njk
|
||||
---
|
||||
|
||||
## Agenda
|
3
content/combaillaux.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
layout: combaillaux.njk
|
||||
---
|
BIN
content/images/bg_combaillaux.jpg
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
content/images/bg_index.jpg
Normal file
After Width: | Height: | Size: 458 KiB |
BIN
content/images/bg_troupe.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
content/images/posters/a_croquer__cie_les_mots_dits.jpg
Normal file
After Width: | Height: | Size: 258 KiB |
BIN
content/images/posters/a_la_vie_a_la_mort__cie_4_coins.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
content/images/posters/a_tous_ceux_qui__troupe_en_chantier.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
content/images/posters/arlequin__cie_la_piece_montee.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
content/images/posters/b_c_b_g__cie_tiens_on_sonne.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 399 KiB |
BIN
content/images/posters/chicago_blues__cie_le_ressac.jpg
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
content/images/posters/compartiments_fumeuses__cie_4_coins.jpg
Normal file
After Width: | Height: | Size: 390 KiB |
BIN
content/images/posters/couple_en_danger.jpg
Normal file
After Width: | Height: | Size: 182 KiB |
After Width: | Height: | Size: 130 KiB |
BIN
content/images/posters/debrayage__cie_les_mots_dits.jpg
Normal file
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 40 KiB |
BIN
content/images/posters/etat_critique__cie_la_clementine.jpg
Normal file
After Width: | Height: | Size: 392 KiB |
After Width: | Height: | Size: 266 KiB |
After Width: | Height: | Size: 44 KiB |
BIN
content/images/posters/l_amuse_gueule__cie_la_piece_montee.jpg
Normal file
After Width: | Height: | Size: 206 KiB |
BIN
content/images/posters/l_anniversaire.jpg
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
content/images/posters/l_illusion_conjugale.jpg
Normal file
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 88 KiB |
BIN
content/images/posters/le_bourgeois_gentilhomme__cie_4_coins.jpg
Normal file
After Width: | Height: | Size: 112 KiB |
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 148 KiB |
BIN
content/images/posters/les_bitumeuses.jpg
Normal file
After Width: | Height: | Size: 216 KiB |
BIN
content/images/posters/les_coups_tordus__cie_l_amandibulle.jpg
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
content/images/posters/les_heritiers.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
content/images/posters/les_heritiers__cie_tiens_on_sonne.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 218 KiB |
BIN
content/images/posters/les_sardines_grillees__cie_le_ressac.jpg
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
content/images/posters/marius__cie_la_gerbe_grabelloise.jpg
Normal file
After Width: | Height: | Size: 174 KiB |
After Width: | Height: | Size: 239 KiB |
BIN
content/images/posters/parle_moi_d_amour__cie_la_clementine.jpg
Normal file
After Width: | Height: | Size: 348 KiB |
After Width: | Height: | Size: 69 KiB |
BIN
content/images/posters/remords_vivants__la_mise_en_bouteille.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
content/images/posters/rideau.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
content/images/posters/tailleurs_pour_dames__cie_le_triangle.jpg
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
content/images/posters/tout_baigne__cie_l_amandibulle.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 176 KiB |
BIN
content/images/thumbnails/tn_a_croquer__cie_les_mots_dits.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
content/images/thumbnails/tn_a_la_vie_a_la_mort__cie_4_coins.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 14 KiB |
BIN
content/images/thumbnails/tn_arlequin__cie_la_piece_montee.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
content/images/thumbnails/tn_b_c_b_g__cie_tiens_on_sonne.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 86 KiB |
BIN
content/images/thumbnails/tn_chicago_blues__cie_le_ressac.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 96 KiB |
BIN
content/images/thumbnails/tn_couple_en_danger.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 28 KiB |
BIN
content/images/thumbnails/tn_debrayage__cie_les_mots_dits.jpg
Normal file
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 94 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 39 KiB |
BIN
content/images/thumbnails/tn_l_anniversaire.jpg
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
content/images/thumbnails/tn_l_illusion_conjugale.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 28 KiB |
BIN
content/images/thumbnails/tn_les_bitumeuses.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 12 KiB |
BIN
content/images/thumbnails/tn_les_heritiers.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 25 KiB |
BIN
content/images/thumbnails/tn_rideau.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 63 KiB |
BIN
content/images/thumbnails/tn_tout_baigne__cie_l_amandibulle.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 42 KiB |
26
content/index.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Accueil
|
||||
layout: front.njk
|
||||
---
|
||||
L’association, créée à Combaillaux (34) le 14 octobre 2002, a débuté
|
||||
ses activités avec un atelier enfants et un atelier adultes, animés
|
||||
par un comédien professionnel.
|
||||
|
||||
Depuis 2009, l'association présente des pièces jouées par une troupe,
|
||||
issue, en partie, de l'atelier adultes.
|
||||
|
||||
Première participation aux Théâtrales de Castries (34) en 2009.
|
||||
|
||||
Nombreuses participations aux Festivals de Théâtre Amateur du
|
||||
Département et de la Région.
|
||||
|
||||
D'autre part, l'association organise quatre fois par an des soirées
|
||||
théâtrales sur la commune, en invitant une troupe amateur de la
|
||||
région.
|
||||
|
||||
Contact :
|
||||
|
||||
<div style="margin-left: 2em;">
|
||||
René SOULAYROL, au 04 67 84 33 56<br/>
|
||||
Courriel : tousenscene34@yahoo.fr
|
||||
</div>
|
4
content/troupe.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Spectacles de la troupe
|
||||
layout: troupe.njk
|
||||
---
|
16
layouts/agenda.njk
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "base.njk" %}
|
||||
|
||||
{% block scripts %}
|
||||
<link rel="stylesheet" href="/assets/css/agenda.css" />
|
||||
<script src="/assets/js/agenda.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section>
|
||||
<header>
|
||||
<h2>{{ title }}</h2>
|
||||
<span class="byline">{{ subtitle }}</span>
|
||||
</header>
|
||||
<div id='calendar'></div>
|
||||
</section>
|
||||
{% endblock %}
|
81
layouts/base.njk
Normal file
|
@ -0,0 +1,81 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Derived from Linear by TEMPLATED
|
||||
templated.co @templatedco
|
||||
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Tous en Scène</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="description" content="Association de théâtre à Combaillaux" />
|
||||
<meta name="keywords" content="association, théatre, combaillaux" />
|
||||
<link rel="stylesheet" href="/assets/css/page.css" />
|
||||
<link href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,700,500,900" rel="stylesheet" type="text/css">
|
||||
<script src="/assets/js/commons.js"></script>
|
||||
<script src="/assets/js/page.js"></script>
|
||||
{% block scripts %}
|
||||
{% endblock %}
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/css/skel-noscript.css" />
|
||||
<link rel="stylesheet" href="/css/style.css" />
|
||||
<link rel="stylesheet" href="/css/style-desktop.css" />
|
||||
</noscript>
|
||||
</head>
|
||||
|
||||
<body {% if site_front %}class="homepage"{% endif %}>
|
||||
<!-- Header -->
|
||||
<div id="header-{{site_section}}" class="page-header">
|
||||
<div id="nav-wrapper">
|
||||
<!-- Nav -->
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
<li {% if site_section == 'intro' %}class="active"{% endif %}><a href="/index.html">Accueil</a></li>
|
||||
<li {% if site_section == 'combaillaux' %}class="active"{% endif %}><a href="/combaillaux.html">Combaillaux</a></li>
|
||||
<li {% if site_section == 'troupe' %}class="active"{% endif %}><a href="/troupe.html">La Troupe</a></li>
|
||||
<!-- <li {% if site_section == 'agenda' %}class="active"{% endif %}><a href="/agenda.html">Agenda</a></li> -->
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<!-- Logo -->
|
||||
<div id="logo">
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Header -->
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
<div id="content" class="container">
|
||||
{% block main %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Main -->
|
||||
|
||||
<!-- Tweet -->
|
||||
<!-- <div id="tweet"> -->
|
||||
<!-- <div class="container"> -->
|
||||
<!-- <section> -->
|
||||
<!-- <blockquote>“In posuere eleifend odio. Quisque semper augue mattis wisi. Maecenas ligula. Pellentesque viverra vulputate enim. Aliquam erat volutpat.”</blockquote> -->
|
||||
<!-- </section> -->
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
<!-- /Tweet -->
|
||||
|
||||
<!-- Copyright -->
|
||||
<div id="copyright">
|
||||
<div class="container">
|
||||
Textes et contenus © 2002-2018, Tous en Scène.<br>
|
||||
Mise en page, programmation, © 2018, David Soulayrol.
|
||||
Style dérivé de <i>Linear</i> par <a href="http://templated.co">TEMPLATED</a>.
|
||||
Généré par <a href="http://metalsmith.io">metalsmith</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
35
layouts/combaillaux.njk
Normal file
|
@ -0,0 +1,35 @@
|
|||
{% extends "base.njk" %}
|
||||
{% import "macros.njk" as macros %}
|
||||
{% set site_section = "combaillaux" %}
|
||||
{% set date = moment().subtract(1, 'year') %}
|
||||
|
||||
{% block header %}
|
||||
<h1>Spectacles à Combaillaux</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="row">
|
||||
|
||||
<!-- Content -->
|
||||
<div id="content" class="8u skel-cell-important">
|
||||
<section>
|
||||
{{ macros.iterate_shows(collections, "combaillaux", {
|
||||
'after': date, 'render': macros.expose_show })
|
||||
}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div id="sidebar" class="4u">
|
||||
<section>
|
||||
<header>
|
||||
<h2>Archives</h2>
|
||||
</header>
|
||||
{{ macros.iterate_shows(collections, "combaillaux", {
|
||||
'before': date, 'render': macros.build_show_header })
|
||||
}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
11
layouts/default.njk
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "base.njk" %}
|
||||
|
||||
{% block main %}
|
||||
<section>
|
||||
<header>
|
||||
<h2>{{ title }}</h2>
|
||||
<span class="byline">{{ subtitle }}</span>
|
||||
</header>
|
||||
{{ contents | safe }}
|
||||
</section>
|
||||
{% endblock %}
|
32
layouts/front.njk
Normal file
|
@ -0,0 +1,32 @@
|
|||
{% extends "base.njk" %}
|
||||
{% import "macros.njk" as macros %}
|
||||
{% set site_front = true %}
|
||||
{% set site_section = "intro" %}
|
||||
|
||||
{% block header %}
|
||||
<h1>Tous en Scène</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section class="container">
|
||||
{{ contents | safe }}
|
||||
</section>
|
||||
|
||||
<div class="row">
|
||||
<header class="12u">
|
||||
<h2>Dernières Créations</h2>
|
||||
</header>
|
||||
<section class="6u front-show">
|
||||
{{ macros.expose_poster(collections['troupe_creations'][0]) }}
|
||||
</section>
|
||||
<section class="6u front-show">
|
||||
{{ macros.expose_poster(collections['troupe_creations'][1]) }}
|
||||
</section>
|
||||
</div>
|
||||
<!-- <div class="row">
|
||||
<header class="12u">
|
||||
<h2>Actualités</h2>
|
||||
</header>
|
||||
{--{ macros.iterate_news(collections) }--}
|
||||
</div> -->
|
||||
{% endblock %}
|
62
layouts/left-sidebar.njk
Normal file
|
@ -0,0 +1,62 @@
|
|||
{% extends "base.njk" %}
|
||||
|
||||
{% block main %}
|
||||
<div class="row">
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div id="sidebar" class="4u">
|
||||
<section>
|
||||
<header>
|
||||
<h2>Etiam malesuada</h2>
|
||||
</header>
|
||||
<div class="row">
|
||||
<section class="6u">
|
||||
<ul class="default">
|
||||
<li><a href="#">Donec facilisis tempor</a></li>
|
||||
<li><a href="#">Nulla convallis cursus</a></li>
|
||||
<li><a href="#">Integer congue euismod</a></li>
|
||||
<li><a href="#">Venenatis vulputate</a></li>
|
||||
<li><a href="#">Morbi ligula volutpat</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="6u">
|
||||
<ul class="default">
|
||||
<li><a href="#">Donec facilisis tempor</a></li>
|
||||
<li><a href="#">Nulla convallis cursus</a></li>
|
||||
<li><a href="#">Integer congue euismod</a></li>
|
||||
<li><a href="#">Venenatis vulputate</a></li>
|
||||
<li><a href="#">Morbi ligula volutpat</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<header>
|
||||
<h2>Mauris vulputate</h2>
|
||||
</header>
|
||||
<ul class="style">
|
||||
<li>
|
||||
<p class="posted">May 21, 2014 | (10 ) Comments</p>
|
||||
<p><a href="#">Nullam non wisi a sem eleifend. Donec mattis libero eget urna. Pellentesque viverra enim.</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="posted">May 18, 2014 | (10 ) Comments</p>
|
||||
<p><a href="#">Nullam non wisi a sem eleifend. Donec mattis libero eget urna. Pellentesque viverra enim.</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div id="content" class="8u skel-cell-important">
|
||||
<section>
|
||||
<header>
|
||||
<h2>{{ title }}</h2>
|
||||
<span class="byline">{{ subtitle }}</span>
|
||||
</header>
|
||||
{{ contents | safe }}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
101
layouts/macros.njk
Normal file
|
@ -0,0 +1,101 @@
|
|||
{% macro build_show_header(show, config) %}
|
||||
<header>
|
||||
{% if config != null %}
|
||||
{% if config.display_date != undefined %}
|
||||
<p class="date">{{ config.display_date }}</p>
|
||||
{% elif not config.no_display_date %}
|
||||
<p class="date">{{ moment(show.lastDate).format('LL') }}</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p class="date">{{ moment(show.lastDate).format('LL') }}</p>
|
||||
{% endif %}
|
||||
<h3><a class="show" href="/{{ show.path }}">{{ show.title }}</a></h3>
|
||||
<p>
|
||||
{% if show.author != null %} de {{ show.author }} {% endif %}
|
||||
{% if show.company != null %} par {{ show.company | safe }} {% endif %}
|
||||
</p>
|
||||
</header>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro expose_show(show, config) %}
|
||||
<article>
|
||||
<section class="row">
|
||||
<section class="3u">
|
||||
<a class="show" href="/{{ show.path }}">
|
||||
<img class="image full" style="width: 150px" src="/images/thumbnails/tn_{{ show.poster }}" alt="{{ show.title }}">
|
||||
</a>
|
||||
</section>
|
||||
<section class="9u">
|
||||
{{ build_show_header(show, config) }}
|
||||
<a class="show" href="/{{ show.path }}">Plus d'informations...</a></p>
|
||||
</section>
|
||||
</section>
|
||||
</article>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro expose_poster(show) %}
|
||||
{% if show.poster %}
|
||||
<header>
|
||||
<h3>{{ show.title }}</h3>
|
||||
</header>
|
||||
<section>
|
||||
<a href="{{ show.path }}" class="image full"><img style="width: 300px" src="/images/posters/{{ show.poster }}" alt=""></a>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro iterate_news(collections) %}
|
||||
{% set news = collections["news"] %}
|
||||
<ul class="style">
|
||||
{% for article in news %}
|
||||
<li>
|
||||
<p class="posted"><a href="{{ article.path }}">{{ moment(article.date).format('LL') }} | {{ article.title }}</a></p>
|
||||
<p>{{ article.synopsis | safe }}</p>
|
||||
</li>
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro iterate_shows(collections, category, config) %}
|
||||
{% set shows = collections[category] %}
|
||||
{% for show in shows %}
|
||||
{% if config != null and config.before %}
|
||||
{% if moment(show.lastDate).isBefore(config.before) %}
|
||||
{{ config.render(show, config) }}
|
||||
{% endif %}
|
||||
{% elif config != null and config.after %}
|
||||
{% if moment(show.lastDate).isAfter(config.after) %}
|
||||
{{ config.render(show, config) }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ config.render(show, config) }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<section>
|
||||
<p>Aucun spectacle répertorié.</p>
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro iterate_tags(tags, current, diatrics_filter) %}
|
||||
<div class="row">
|
||||
{% for tag, articles in tags %}
|
||||
{% if loop.index == 1 %}
|
||||
<section class="6u">
|
||||
<ul class="default">
|
||||
{% endif %}
|
||||
<li {{ "class=selected" if current == tag }}><a href="/etiquettes/{{ diatrics_filter(tag) }}/index.html">{{ tag }} ({{ articles.length }})</a></li>
|
||||
{% if loop.index == (loop.length / 2) | round %}
|
||||
</ul>
|
||||
</section>
|
||||
<section class="6u">
|
||||
<ul class="default">
|
||||
{% endif %}
|
||||
{% if loop.index == loop.length %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|