From a2b5196e75a484da247e5d649324c5257aec29b6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 19 Dec 2016 18:50:39 +0000 Subject: [PATCH] clean templates --- templates/blocks/ordered-list.html | 2 -- templates/blocks/secret.html | 4 +--- templates/blog/blog_page.html | 4 ++-- templates/pages/section_index_page.html | 11 +---------- templates/pages/simple_content_page.html | 6 ++---- templates/projects/project_page.html | 9 +++------ 6 files changed, 9 insertions(+), 27 deletions(-) diff --git a/templates/blocks/ordered-list.html b/templates/blocks/ordered-list.html index ccca959..a2cc30c 100644 --- a/templates/blocks/ordered-list.html +++ b/templates/blocks/ordered-list.html @@ -1,5 +1,3 @@ -{% load wagtailcore_tags %} -
    {% for item in value %}
  1. {{ item }}
  2. diff --git a/templates/blocks/secret.html b/templates/blocks/secret.html index ab27714..32e907c 100644 --- a/templates/blocks/secret.html +++ b/templates/blocks/secret.html @@ -1,10 +1,8 @@ -{% load wagtailcore_tags %} -
    - {{ value }} + {{ value|richtext }}
    diff --git a/templates/blog/blog_page.html b/templates/blog/blog_page.html index 9afe3bd..cd79ba9 100644 --- a/templates/blog/blog_page.html +++ b/templates/blog/blog_page.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% load wagtailcore_tags wagtailimages_tags %} +{% load wagtailcore_tags %} {% block body_class %}template-blogpage{% endblock %} @@ -11,7 +11,7 @@

    Published: {{ page.date|datetime }}

    - {{ page.body|richtext }} + {% include_block page.body %} {% endblock %} diff --git a/templates/pages/section_index_page.html b/templates/pages/section_index_page.html index 8a306e4..c95bffe 100644 --- a/templates/pages/section_index_page.html +++ b/templates/pages/section_index_page.html @@ -5,16 +5,7 @@ {% block body_class %}template-indexpage{% endblock %} {% block content %} -
    -
    -
    -
    -

    {{ page.title }}

    -
    -
    -
    -
    -
    + {% include 'common/header.html' %} {% if page.intro %}
    diff --git a/templates/pages/simple_content_page.html b/templates/pages/simple_content_page.html index 61fdf2c..46d7f9e 100644 --- a/templates/pages/simple_content_page.html +++ b/templates/pages/simple_content_page.html @@ -6,9 +6,7 @@ {% block content %} {% include 'common/header' %} -
    -
    - {{ page.body|richtext }} -
    +
    + {% include_block page.body %}
    {% endblock %} diff --git a/templates/projects/project_page.html b/templates/projects/project_page.html index 6572454..400800e 100644 --- a/templates/projects/project_page.html +++ b/templates/projects/project_page.html @@ -8,21 +8,18 @@ {% include 'common/header.html' %}
    -

    - Updated: {{ page.date }} -

    {% include_block page.body %}
    -
    +
    {% if page.get_download_link %} Download {{ page.title }} {% endif %} {% if page.url %} - View on Github + View Project {% endif %}
    -
    +
    {% endblock %}