création twig de la page projet, privatiser, accueil et asso

This commit is contained in:
2020-05-25 17:11:10 +02:00
parent 3978fb61c8
commit 234ab9f041
12 changed files with 189 additions and 86 deletions
+1 -20
View File
@@ -2,6 +2,7 @@
{% block content %}
<div class="content-wrapper">
{{dump(post)}}
<article class="post-type-{{ post.post_type }}" id="post-{{ post.ID }}">
<img src="{{ post.thumbnail.src|resize(1200, 300) }}">
<section class="article-content">
@@ -14,26 +15,6 @@
{{post.content}}
</div>
</section>
<!-- comment box -->
<section class="comment-box">
<!-- comments -->
<div class="comments">
{% if post.comments %}
<h3> comments </h3>
{% for cmt in post.comments %}
{% include "comment.twig" with {comment:cmt} %}
{% endfor %}
{% endif %}
</div>
{% if post.comment_status == "closed" %}
<p> comments for this post are closed </p>
{% else %}
<!-- comment form -->
{% include "comment-form.twig" %}
{% endif %}
</section>
</article>
</div><!-- /content-wrapper -->
{% endblock %}