release candidate

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-30 17:48:05 +01:00
parent 13bd34d2b3
commit 3983d1fdaf
232 changed files with 24427 additions and 11080 deletions
@@ -8,37 +8,13 @@
{% include 'partials/tagslist.html.twig' with {'base_url':"/categories/", 'taxonomy':'tag', 'display':'inline'} %}
</nav>
{% set contents = page.collection %}
{% set taxlist = taxonomylist.get() %}
<div id="categories-content" class="grid">
{% for tax,value in taxlist['client'] %}
{% set posts = taxonomy.findTaxonomy({'client':tax}) %}
{% set disposts = {} %}
{% set i = 0 %}
{% for p,v in posts %}
{% if v in contents %}
{% set disposts = disposts|merge({('_'~(v.date|date("Y"))~'_'~i):v}) %}
{% endif %}
{% set i = i+1 %}
{% endfor %}
{{ dump(disposts) }}
{% if disposts|length %}
<section class="client-block client-block-text grid-block columns large-3 medium-6 small-12">
<h3>{{ tax }}</h3>
<ul>
{% for key,post in disposts|ksort|reverse %}
<li class="project">
{% include 'partials/projet-block.html.twig' with {'page':post,'display':'text',"key":key} %}
</li>
{% endfor %}
</ul>
</section>
{% endif %}
<div class="grid">
{% for child in page.collection %}
<section class="projet-block projet-block-img grid-block columns xlarge-3 large-4 medium-6 small-12">
{% include 'partials/projet-block.html.twig' with {'page':child,'display':'img'} %}
</section>
{% endfor %}
</div>
{% endblock %}
+1 -3
View File
@@ -6,9 +6,7 @@
<div class="grid">
{% for child in page.collection %}
{% if child.header.home == true %}
<section class="projet-block projet-block-img grid-block columns xlarge-3 large-4 medium-6 small-12">
{% include 'partials/projet-block.html.twig' with {'page':child,'display':'img'} %}
</section>
{% include 'partials/projet-block.html.twig' with {'page':child,'display':'img'} %}
{% endif %}
{% endfor %}
</div>
@@ -72,7 +72,7 @@
{% do assets.add('theme://bower_components/jquery/dist/jquery.min.js', 101) %}
{% do assets.add('theme://bower_components/foundation/js/foundation.min.js') %}
{% do assets.add('theme://bower_components/imagesloaded/imagesloaded.pkgd.min.js') %}
{% do assets.add('theme://bower_components/masonry/dist/masonry.pkgd.min.js') %}
{% do assets.add('theme://bower_components/isotope/dist/isotope.pkgd.min.js') %}
{% do assets.add('theme://js/dist/script.min.js') %}
{{ assets.js() }}
{% endblock %}
@@ -9,7 +9,7 @@
<nav id="left-nav" class="nav small-6 medium-2 medium-pull-8 columns">
{% if config.plugins.taxonomylist.enabled %}
<div class="wrapper">
<h4><a href="/categories">Catégories</a></h4>
<h4><a data-filter="*" href="/categories">Catégories</a></h4>
{% include 'partials/tagslist.html.twig' with {'base_url':"/categories/", 'taxonomy':'tag'} %}
</div>
{% endif %}
@@ -1,3 +1,11 @@
{% set blockclass = "" %}
{% if page.taxonomy.tag %}
{% for tag in page.taxonomy.tag %}
{% set blockclass = blockclass ~ " tag-" ~ catlist[(tag|e('url'))] %}
{% endfor %}
{% endif %}
<section class="projet-block projet-block-img grid-block columns xlarge-3 large-4 medium-6 small-12 {{ blockclass }}">
{% if display == 'img' %}
{% set image = page.media['00-home.jpg'] %}
@@ -11,7 +19,12 @@
<ul>
{% for tag in page.taxonomy.tag %}
<li>
<a class="tag-{{ catlist[(tag|e('url'))] }}" href="/categories/tag{{ config.system.param_sep }}{{ tag|e('url') }}"><span>{{ tag }}</span></a>
<a
class="tag-{{ catlist[(tag|e('url'))] }}"
data-filter=".tag-{{ catlist[(tag|e('url'))] }}"
href="/categories/tag{{ config.system.param_sep }}{{ tag|e('url') }}">
<span>{{ tag }}</span>
</a>
</li>
{% endfor %}
</ul>
@@ -37,3 +50,4 @@
{% endif %}
<a class="projet-img" href="{{ page.url }}">{{ image.resize(500).html }}</a>
{% endif %}
</section>
@@ -4,12 +4,10 @@
<ul class="tags">
{% for tag,value in taxlist[taxonomy] %}
{% set active = uri.param(taxonomy) == tag ? ' active' : '' %}
{% if not loop.first and display == "inline" %}
<span>-</span>
{% endif %}
<li class="{{ active }}">
<a
class="tag-{{ catlist[(tag|e('url'))] }}{{ active }}"
data-filter=".tag-{{ catlist[(tag|e('url'))] }}"
href="{{ base_url }}{{ taxonomy }}{{ config.system.param_sep }}{{ tag|e('url') }}">
<span>{{ tag }}</sapn>
</a>
+16 -2
View File
@@ -7,7 +7,21 @@
{% block content %}
<section class="projet">
<h1>{{page.title}}</h1>
{% if page.taxonomy.tag %}
{{ dump(catlist) }}
<nav class="categories">
<ul>
{% for tag in page.taxonomy.tag %}
<li>
<a class="tag-{{ catlist[(tag|e('url'))] }}" href="/categories/tag{{ config.system.param_sep }}{{ tag|e('url') }}"><span>{{ tag }}</span></a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
<h1>{{page.title}}<span class="date">{{page.date|date("Y")}}</span></h1>
<h2>{{ page.header.subtitle}}</h2>
{{ page.content }}
@@ -15,7 +29,7 @@
<div id="images" class="">
{{ dump(images) }}
{% for image in images %}
{{ image.lightbox().resize(400).html(image.meta.title) }}
{{ image.lightbox().resize(600).html(image.meta.title) }}
{% endfor %}
</div>
</section>