First commit
This commit is contained in:
@ -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