scrapy/sites/scrapy.org/templates/home.html

18 lines
397 B
HTML

{% extends "base_home.html" %}
{% block main-content %}
{% load markup %}
{% load article_tags %}
{% load_main_articles "2" as "articles" %}
{% if not articles %}
{% load_last_articles "2" as "articles" %}
{% endif %}
{% for article in articles %}
<h2>{{ article.title }}</h2>
{{ article.text|restructuredtext }}
{% endfor %}
{% endblock %}