First commit
This commit is contained in:
3
app/website/templates/components/_list_of_comments.html
Normal file
3
app/website/templates/components/_list_of_comments.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% for comment in comments %}
|
||||
{% include "components/_single_comment.html" with comment=comment %}
|
||||
{% endfor %}
|
20
app/website/templates/components/_nav.html
Normal file
20
app/website/templates/components/_nav.html
Normal file
@ -0,0 +1,20 @@
|
||||
<ul class="nav__ul">
|
||||
<li>
|
||||
<a
|
||||
href="#"
|
||||
class="nav__link nav__link--page{% if active_nav == "all posts" %} active{% endif %}"
|
||||
data-target="all posts"
|
||||
>
|
||||
All posts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="#"
|
||||
class="nav__link nav__link--page{% if active_nav == "about us" %} active{% endif %}"
|
||||
data-target="about us"
|
||||
>
|
||||
About us
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
5
app/website/templates/components/_single_comment.html
Normal file
5
app/website/templates/components/_single_comment.html
Normal file
@ -0,0 +1,5 @@
|
||||
<article>
|
||||
<h2>{{ comment.author }}</h2>
|
||||
<p>{{ comment.content }}</p>
|
||||
<p>{{ comment.created_at }}</p>
|
||||
</article>
|
@ -0,0 +1,3 @@
|
||||
{% if not is_last_page %}
|
||||
<button class="button" id="paginator" data-next-page="{{ next_page }}">More posts</button>
|
||||
{% endif %}
|
@ -0,0 +1,4 @@
|
||||
<form id="search-form" action="">
|
||||
{{ form.search }}
|
||||
<input class="button" type="submit" value="Search">
|
||||
</form>
|
14
app/website/templates/components/all_posts/list.html
Normal file
14
app/website/templates/components/all_posts/list.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% for post in posts %}
|
||||
<article>
|
||||
<header>
|
||||
<h2>{{ post.title }}</h2>
|
||||
</header>
|
||||
<p>{{ post.summary }}</p>
|
||||
<p>{{ post.author }}</p>
|
||||
<footer>
|
||||
<p>
|
||||
<a class="post-item__link" href="#" data-page="single post" data-id="{{ post.id }}">Read more</a>
|
||||
</p>
|
||||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
Reference in New Issue
Block a user