From fe7012879c287d80598a9b6e40929b61eefcd25c Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 5 May 2016 18:34:02 -0400 Subject: basic fixups to templates and stylesheet --- theme/templates/article.html | 4 +++- theme/templates/author.html | 2 +- theme/templates/base.html | 23 ++++++++--------------- theme/templates/category.html | 2 +- theme/templates/index.html | 4 +--- theme/templates/list.html | 28 ++++++++++++++++++++++++++++ theme/templates/page.html | 4 ++-- theme/templates/simple_index.html | 28 ---------------------------- 8 files changed, 44 insertions(+), 51 deletions(-) create mode 100644 theme/templates/list.html delete mode 100644 theme/templates/simple_index.html diff --git a/theme/templates/article.html b/theme/templates/article.html index 8afd2c0..23bf022 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -23,6 +23,7 @@ {{ translations.translations_for(article) }}
{{ article.content }} diff --git a/theme/templates/author.html b/theme/templates/author.html index b679382..9285e43 100644 --- a/theme/templates/author.html +++ b/theme/templates/author.html @@ -1,4 +1,4 @@ -{% extends "index.html" %} +{% extends "list.html" %} {% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} {% block pagetitle %}Articles by {{ author }}{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html index f895fe3..bcc5f98 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -5,30 +5,24 @@ {% block head %} {% block title %}{{ SITENAME }}{% endblock title %} -{% if FEED_ALL_ATOM %} - -{% endif %} -{% if FEED_ALL_RSS %} - +{% if FEED_RSS %} + {% endif %} {% if FEED_ATOM %} - + {% endif %} -{% if FEED_RSS %} - +{% if CATEGORY_FEED_RSS and category %} + {% endif %} {% if CATEGORY_FEED_ATOM and category %} {% endif %} -{% if CATEGORY_FEED_RSS and category %} - +{% if TAG_FEED_RSS and tag %} + {% endif %} {% if TAG_FEED_ATOM and tag %} {% endif %} -{% if TAG_FEED_RSS and tag %} - -{% endif %} {% block stylesheets %} @@ -64,7 +58,7 @@ {% block path %}{% endblock %} -

{% block pagetitle %}Hey Hey Hey!{% endblock %}

+

{% block pagetitle %}{% endblock %}

{% block pagesubtitle %}{% endblock %}

{% block right_stuff %} @@ -76,7 +70,6 @@
  {% block content %} -Here lies content! {% endblock %}
{% block commentary %} {% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html index c5bfe9b..2a5d250 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -1,3 +1,3 @@ -{% extends "index.html" %} +{% extends "list.html" %} {% block pagetitle %}Articles in the {{ category }} category{% endblock %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 33f1a6a..6537dd8 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -17,13 +17,11 @@

RSS feeds:
-   - web links
-   - site code changes
+   - articles


Other sites:
  - github
  - keybase
-   - equator
{% endblock %} {% block content %} diff --git a/theme/templates/list.html b/theme/templates/list.html new file mode 100644 index 0000000..4bd8198 --- /dev/null +++ b/theme/templates/list.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +

All articles

+{% endblock %} + +
    +{% for article in articles_page.object_list %} +
  1. +

    {{ article.title }}

    +
    + {{ article.locale_date }} +
    By + {% for author in article.authors %} + {{ author }} + {% endfor %} +
    +
    +
    {{ article.summary }}
    +
  2. +{% endfor %} +
+{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +
+{% endblock content %} diff --git a/theme/templates/page.html b/theme/templates/page.html index 100cd04..bcbcf5e 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -8,8 +8,8 @@ {{ page.content }} {% if page.modified %} -

+

Last updated: {{ page.locale_modified }} -

+
{% endif %} {% endblock %} diff --git a/theme/templates/simple_index.html b/theme/templates/simple_index.html deleted file mode 100644 index 4bd8198..0000000 --- a/theme/templates/simple_index.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "base.html" %} -{% block content %} -
-{% block content_title %} -

All articles

-{% endblock %} - -
    -{% for article in articles_page.object_list %} -
  1. -

    {{ article.title }}

    -
    - {{ article.locale_date }} -
    By - {% for author in article.authors %} - {{ author }} - {% endfor %} -
    -
    -
    {{ article.summary }}
    -
  2. -{% endfor %} -
-{% if articles_page.has_other_pages() %} - {% include 'pagination.html' %} -{% endif %} -
-{% endblock content %} -- cgit v1.2.3