First commit

This commit is contained in:
Andros Fenollosa
2022-05-15 20:58:36 +02:00
commit 96b4a45f1d
167 changed files with 31526 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{% for comment in comments %}
{% include "components/_single_comment.html" with comment=comment %}
{% endfor %}

View 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>

View File

@ -0,0 +1,5 @@
<article>
<h2>{{ comment.author }}</h2>
<p>{{ comment.content }}</p>
<p>{{ comment.created_at }}</p>
</article>

View File

@ -0,0 +1,3 @@
{% if not is_last_page %}
<button class="button" id="paginator" data-next-page="{{ next_page }}">More posts</button>
{% endif %}

View File

@ -0,0 +1,4 @@
<form id="search-form" action="">
{{ form.search }}
<input class="button" type="submit" value="Search">
</form>

View 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 %}