ajax
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<span>•</span>
|
||||
<span class="blog-date">
|
||||
<time class="dt-published" datetime="{{ page.date|date("c") }}">
|
||||
<i class="fa fa-calendar"></i> {{ page.date|date(system.pages.dateformat.short) }}
|
||||
<time class="dt-published" datetime="{{ page.date|date("Y") }}">
|
||||
{{ page.date|date("Y") }}
|
||||
</time>
|
||||
</span>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<div class="other_projets">
|
||||
<h3>Les autres projets <span class="{{page.parent.title|lower}}">{{page.parent.title|lower}}s</span></h3>
|
||||
{% set collection_random = page.parent.collection|slice(1,3) %}
|
||||
|
||||
{% for item in collection_random %}
|
||||
{% if item.title == page.title == false %}
|
||||
<div class="card">
|
||||
<div class="card-images">
|
||||
<a href="{{item.url}}">
|
||||
{% for image in item.media.images|slice(0,1) %}
|
||||
{{ image.html }}
|
||||
{% endfor %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
{% if item.header.title %}
|
||||
{% include 'partials/blog/title.html.twig' with { 'page': item } %}
|
||||
{% endif %}
|
||||
{% if item.header.taxonomy.tag %}
|
||||
<!-- <span>•</span> -->
|
||||
{% include 'partials/blog/taxonomy.html.twig' with { 'page': item } %}
|
||||
{% endif %}
|
||||
{% if item.header.date %}
|
||||
<!-- <span>•</span> -->
|
||||
{% include 'partials/blog/date.html.twig' with { 'page': item } %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -1,7 +1,8 @@
|
||||
{% if page.taxonomy.tag %}
|
||||
<span>•</span>
|
||||
<span class="tags">
|
||||
{% for tag in page.taxonomy.tag %}
|
||||
<a class="label label-rounded {{ label_style ?: 'label-secondary' }} p-category" href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}#body-wrapper">{{ tag }}</a>
|
||||
{{ tag }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user