Best template

This commit is contained in:
Andros Fenollosa
2021-11-12 20:54:20 +01:00
parent c8fbf9fb4a
commit ae59910bb7
5 changed files with 23 additions and 13 deletions

View File

@ -1,3 +1,3 @@
<main id="page">
<main id="main">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis dignissimos dolor inventore laudantium libero optio quo reprehenderit repudiandae sapiente similique. Delectus dolorum enim fuga fugiat ipsam nam recusandae sequi sint.
</main>

View File

@ -1,9 +1,20 @@
<main id="page">
<main id="main">
{% for talk in talks %}
<article>
<header>{{ talk.title }}</header>
<p></p>
<footer>Author {{ talk.author.full_name }} - {{ talk.category.name }}</footer>
</article>
<a href="#">
<article>
<header>
<div class="grid">
<p>
<img width="200" src="{{ talk.image.url }}">
</p>
<h2>{{ talk.title }}</h2>
</div>
</header>
<p>
{{ talk.content|truncatechars:100 }}
</p>
<footer>Author {{ talk.author.full_name }} - {{ talk.category.name }}</footer>
</article>
</a>
{% endfor %}
</main>