From 6ced1f4eeb87ae4db4674a03134eeb27d15f765d Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Fri, 27 Jun 2008 02:41:04 +0000 Subject: [PATCH] Override the correct block, some content from base template was being removed --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4011 --- sites/scrapy.org/site/templates/home.html | 24 +++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) 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 %} -

{{ article.title }}

+ {% for article in articles %} +

{{ article.title }}

- {{ article.text|restructuredtext }} - {% endfor %} - {% endblock %} + {{ article.text|restructuredtext }} + {% endfor %} {% endblock %}