Initial import.

This commit is contained in:
David Soulayrol 2018-11-14 19:05:24 +01:00
commit 9c9c5e1010
187 changed files with 18457 additions and 0 deletions

3
.babelrc Normal file
View file

@ -0,0 +1,3 @@
{
"presets": ["es2015-node6", "stage-0"]
}

8
.eslintrc.js Normal file
View file

@ -0,0 +1,8 @@
module.exports = {
"parser": "babel-eslint",
"extends": "standard",
"plugins": [
"standard",
"babel"
]
};

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
dist
node_modules

27
NOTES.org Normal file
View 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
View file

@ -0,0 +1,5 @@
---
title: "403"
---
# Accès interdit

5
content/404.md Normal file
View file

@ -0,0 +1,5 @@
---
title: "404"
---
# Page non trouvée

6
content/agenda.md Normal file
View file

@ -0,0 +1,6 @@
---
title: Agenda
layout: agenda.njk
---
## Agenda

3
content/combaillaux.md Normal file
View file

@ -0,0 +1,3 @@
---
layout: combaillaux.njk
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
content/images/bg_index.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

26
content/index.md Normal file
View file

@ -0,0 +1,26 @@
---
title: Accueil
layout: front.njk
---
Lassociation, 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
View file

@ -0,0 +1,4 @@
---
title: Spectacles de la troupe
layout: troupe.njk
---

16
layouts/agenda.njk Normal file
View 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
View 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>&ldquo;In posuere eleifend odio. Quisque semper augue mattis wisi. Maecenas ligula. Pellentesque viverra vulputate enim. Aliquam erat volutpat.&rdquo;</blockquote> -->
<!-- </section> -->
<!-- </div> -->
<!-- </div> -->
<!-- /Tweet -->
<!-- Copyright -->
<div id="copyright">
<div class="container">
Textes et contenus &copy; 2002-2018, Tous en Scène.<br>
Mise en page, programmation, &copy; 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
View 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
View 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
View 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
View 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
View 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 %}

Some files were not shown because too many files have changed in this diff Show more