demo-hackernews-with-django.../app/web/templates/pages/list.html

12 lines
290 B
HTML
Raw Normal View History

2021-06-22 15:43:26 +02:00
{% extends 'layouts/base.html' %}
{% block title %}Welcome{% endblock %}
{% block main %}
{% for item in news %}
<article>
<h2>{{ item.title }}</h2>
<p>
<a href="{{ item.url }}">Ver completo</a>
</p>
</article>
{% endfor %}
{% endblock %}