MODIFY sigle page & comments
This commit is contained in:
@ -1,23 +1,29 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<article class="post-type-{{ post.type }}" id="post-{{ post.id }}">
|
||||
<img src="{{ post.thumbnail.src|resize(1200, 300) }}" />
|
||||
<section class="article-content">
|
||||
<!-- <img src="{{ post.thumbnail.src|resize(1200, 300) }}" /> -->
|
||||
|
||||
<section class="article-content mt-5 border-dark border-top">
|
||||
|
||||
<h1 class="article-h1">{{ post.title }}</h1>
|
||||
<p class="blog-author">
|
||||
<span>By</span>
|
||||
<p class="blog-author mt-3 mb-5 border-dark border-bottom">
|
||||
<span>Autor:</span>
|
||||
<a href="{{ post.author.path }}">{{ post.author.name }}</a>
|
||||
<span>•</span>
|
||||
<time datetime="{{ post.date|date('Y-m-d H:i:s') }}">{{ post.date }}</time>
|
||||
</p>
|
||||
|
||||
<div class="article-body">{{ post.content }}</div>
|
||||
</section>
|
||||
<section class="comment-box">
|
||||
|
||||
<!-- comments -->
|
||||
<section class="comment-box mt-5 p-2 border-dark border-top">
|
||||
<div class="comments">
|
||||
{% if post.comments %}
|
||||
<h3>comments</h3>
|
||||
<!-- <h2>Comentarios</h2> -->
|
||||
|
||||
{% for cmt in post.comments %}
|
||||
{% include 'partials/comment.twig' with {
|
||||
comment: cmt
|
||||
@ -27,7 +33,7 @@
|
||||
</div>
|
||||
|
||||
{% if post.comment_status == 'closed' %}
|
||||
<p>comments for this post are closed by gus</p>
|
||||
<p>No se puede comentar.</p>
|
||||
{% else %}
|
||||
{% include 'partials/comment-form.twig' %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user