Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Override the correct block, some content from base template was being removed

Matias Aguirre6ced1f4eeb87
diff --git a/sites/scrapy.org/site/templates/home.html b/sites/scrapy.org/site/templates/home.html
index d28031f4b..7417c6477 100644
--- a/sites/scrapy.org/site/templates/home.html
+++ b/sites/scrapy.org/site/templates/home.html
@@ -1,19 +1,17 @@
{% extends "base_home.html" %}
-{% block content %}
- {% block main-content %}
- {% load markup %}
- {% load article_tags %}
+{% block main-content %}
+ {% load markup %}
+ {% load article_tags %}
- {% load_main_articles "2" as "articles" %}
- {% if not articles %}
- {% load_last_articles "2" as "articles" %}
- {% endif %}
+ {% load_main_articles "2" as "articles" %}
+ {% if not articles %}
+ {% load_last_articles "2" as "articles" %}
+ {% endif %}
- {% for article in articles %}
- <h2>{{ article.title }}</h2>
+ {% for article in articles %}
+ <h2>{{ article.title }}</h2>
- {{ article.text|restructuredtext }}
- {% endfor %}
- {% endblock %}
+ {{ article.text|restructuredtext }}
+ {% endfor %}
{% endblock %}