First commit
This commit is contained in:
27
app/website/templates/pages/single_post.html
Normal file
27
app/website/templates/pages/single_post.html
Normal file
@ -0,0 +1,27 @@
|
||||
<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>
|
Reference in New Issue
Block a user