django-blog-for-html-over-t.../app/website/templates/pages/single_post.html

28 lines
694 B
HTML
Raw Permalink Normal View History

2022-05-15 20:58:36 +02:00
<section>
{# Post #}
<article>
<header>
<h1>{{ post.title }}</h1>
</header>
<div>{{ post.content }}</div>
<footer>
<p>{{ post.author }}</p>
</footer>
</article>
{# End post #}
{# Comments #}
<div id="comments">
<h2>Comments</h2>
<form id="comment-form" action="" data-post-id="{{ post.id }}">
{{ form.author }}
{{ form.content }}
<input class="button" type="submit" value="Add">
</form>
<div id="list-of-comments">
{% include "components/_list_of_comments.html" %}
</div>
</div>
{# End comments #}
</section>