From abf580866624bfeec53d948894ba02fe4ee307fd Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Wed, 22 Jan 2014 13:20:50 -0700 Subject: Added Zurb Foundation 5.0.1 theme. --- .../templates/analytics.html | 14 ++ foundation-default-colours/templates/archives.html | 29 +++ foundation-default-colours/templates/article.html | 29 +++ foundation-default-colours/templates/base.html | 201 +++++++++++++++++++++ .../templates/categories.html | 11 ++ foundation-default-colours/templates/category.html | 3 + foundation-default-colours/templates/index.html | 47 +++++ foundation-default-colours/templates/page.html | 11 ++ foundation-default-colours/templates/tag.html | 3 + foundation-default-colours/templates/tags.html | 11 ++ 10 files changed, 359 insertions(+) create mode 100644 foundation-default-colours/templates/analytics.html create mode 100644 foundation-default-colours/templates/archives.html create mode 100644 foundation-default-colours/templates/article.html create mode 100644 foundation-default-colours/templates/base.html create mode 100644 foundation-default-colours/templates/categories.html create mode 100644 foundation-default-colours/templates/category.html create mode 100644 foundation-default-colours/templates/index.html create mode 100644 foundation-default-colours/templates/page.html create mode 100644 foundation-default-colours/templates/tag.html create mode 100644 foundation-default-colours/templates/tags.html (limited to 'foundation-default-colours/templates') diff --git a/foundation-default-colours/templates/analytics.html b/foundation-default-colours/templates/analytics.html new file mode 100644 index 0000000..911935b --- /dev/null +++ b/foundation-default-colours/templates/analytics.html @@ -0,0 +1,14 @@ +{% if GOOGLE_ANALYTICS %} +{% if FOUNDATION_NEW_ANALYTICS %} + +{% else %} + +{% endif %} +{% endif %} \ No newline at end of file diff --git a/foundation-default-colours/templates/archives.html b/foundation-default-colours/templates/archives.html new file mode 100644 index 0000000..3268c62 --- /dev/null +++ b/foundation-default-colours/templates/archives.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block content %} +
+
+ {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} +
+
+

{{ year }}

+
+
+ {% for month, articles in date_year|groupby('date.month') %} + {% for article in articles %} +
+
+
{{ article.date.strftime('%b %d') }}
+
+ +
+ {% endfor %} + {% endfor %} + {% endfor %} +
+
+{% endblock %} + +{% set pagetitle = 'Archives' %} diff --git a/foundation-default-colours/templates/article.html b/foundation-default-colours/templates/article.html new file mode 100644 index 0000000..9ecf02e --- /dev/null +++ b/foundation-default-colours/templates/article.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block content %} +
+

{{ article.title }}

+ {{ article.content }} +
Written by {{ article.author }} on {{ article.locale_date }}.
+
+ +{% if DISQUS_SITENAME %} +
+
+
+

Comments

+
+ + + comments powered by Disqus +
+
+{% endif %} +{% endblock %} diff --git a/foundation-default-colours/templates/base.html b/foundation-default-colours/templates/base.html new file mode 100644 index 0000000..69ad3a3 --- /dev/null +++ b/foundation-default-colours/templates/base.html @@ -0,0 +1,201 @@ + + + + + + + {% block windowtitle %}{{ SITENAME }}{% endblock %} + + + + + {% if not FOUNDATION_PYGMENT_THEME %} + {% set FOUNDATION_PYGMENT_THEME = 'monokai' %} + {% endif %} + + + + {% if FOUNDATION_ALTERNATE_FONTS %} + + + + {% endif %} + + + + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + + {% include "analytics.html" %} + + + + + + +
+
+ + + + + + + + + + +
+
+ +
+ {% if pagetitle is defined %} +
+
+

{{ pagetitle }}

+
+
+ {% endif %} + {% block content %}{% endblock %} +
+ + + + +
+ + +
+
+ {% if not FOUNDATION_FOOTER_TEXT %} + {% set FOUNDATION_FOOTER_TEXT = 'Powered by Pelican and Zurb Foundation. Theme by Kenton Hamaluik.' %} + {% endif %} +

{{ FOUNDATION_FOOTER_TEXT }}

+
+
+ +
+ +
+
+ + + + + + \ No newline at end of file diff --git a/foundation-default-colours/templates/categories.html b/foundation-default-colours/templates/categories.html new file mode 100644 index 0000000..f2f055e --- /dev/null +++ b/foundation-default-colours/templates/categories.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} [categories]{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/foundation-default-colours/templates/category.html b/foundation-default-colours/templates/category.html new file mode 100644 index 0000000..0790851 --- /dev/null +++ b/foundation-default-colours/templates/category.html @@ -0,0 +1,3 @@ +{% extends "index.html" %} + +{% set pagetitle = 'Category: ' ~ category %} \ No newline at end of file diff --git a/foundation-default-colours/templates/index.html b/foundation-default-colours/templates/index.html new file mode 100644 index 0000000..7c8a6ad --- /dev/null +++ b/foundation-default-colours/templates/index.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% block content %} + +{# show summaries of the latest articles #} +{% if articles %} +{% for article in (articles_page.object_list if articles_page else articles) %} +
+

{{ article.title }}

+
Written by {{ article.author }} {% if article.category %}in {{ article.category}} {% endif %}on {{ article.locale_date }}.{% if article.tags|count > 0 %} Tags: {% for tag in article.tags %}{{ tag }}, {% endfor %}{% endif %}
+ {{ article.content if FOUNDATION_FRONT_PAGE_FULL_ARTICLES else article.summary }} + {% if not FOUNDATION_FRONT_PAGE_FULL_ARTICLES %} + {# add a 'Continue reading' link if we're displaying summaries #} +

Continue reading »

+ {% endif %} +
+
+{% endfor %} +{%endif%} + +{# deal with pagination #} +{% if articles_page and articles_paginator.num_pages > 1 %} +
+
+
+
    + {% if articles_page.has_previous() %} + {% set num = articles_page.previous_page_number() %} +
  • ← Previous
  • + {% else %} +
  • ← Previous
  • + {% endif %} + {% for num in range( 1, 1 + articles_paginator.num_pages ) %} +
  • {{ num }}
  • + {% endfor %} + {% if articles_page.has_next() %} +
  • Next →
  • + {% else %} +
  • → Next
  • + {% endif %} +
+
+
+
+{% endif %} + +{% endblock %} + diff --git a/foundation-default-colours/templates/page.html b/foundation-default-colours/templates/page.html new file mode 100644 index 0000000..7c14405 --- /dev/null +++ b/foundation-default-colours/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +
+
+ {{ page.content }} +
+
+{% endblock %} + +{% set pagetitle = page.title %} \ No newline at end of file diff --git a/foundation-default-colours/templates/tag.html b/foundation-default-colours/templates/tag.html new file mode 100644 index 0000000..5daf6ba --- /dev/null +++ b/foundation-default-colours/templates/tag.html @@ -0,0 +1,3 @@ +{% extends "index.html" %} + +{% set pagetitle = "Posts Tagged With '" ~ tag ~ "'" %} \ No newline at end of file diff --git a/foundation-default-colours/templates/tags.html b/foundation-default-colours/templates/tags.html new file mode 100644 index 0000000..7b517d3 --- /dev/null +++ b/foundation-default-colours/templates/tags.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} [tags]{% endblock %} + +{% block content %} + +{% endblock %} \ No newline at end of file -- cgit From 1bc386fdee2c1cb8eba254d787b779ce55a55b14 Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Thu, 23 Jan 2014 13:35:14 -0700 Subject: Made hr at bottom of articles always appear, regardless of DISQUS being present --- foundation-default-colours/templates/article.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'foundation-default-colours/templates') diff --git a/foundation-default-colours/templates/article.html b/foundation-default-colours/templates/article.html index 9ecf02e..519295f 100644 --- a/foundation-default-colours/templates/article.html +++ b/foundation-default-colours/templates/article.html @@ -7,8 +7,8 @@
Written by {{ article.author }} on {{ article.locale_date }}.
-{% if DISQUS_SITENAME %}
+{% if DISQUS_SITENAME %}

Comments

-- cgit From 3923cd0725ff9257da226dbeca74d36422d34fb5 Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Sun, 26 Jan 2014 20:48:46 -0700 Subject: Added metadata to articles --- foundation-default-colours/templates/article.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'foundation-default-colours/templates') diff --git a/foundation-default-colours/templates/article.html b/foundation-default-colours/templates/article.html index 519295f..1528309 100644 --- a/foundation-default-colours/templates/article.html +++ b/foundation-default-colours/templates/article.html @@ -4,7 +4,8 @@
-- cgit From 488efa23deb42f7425378595cc5af03f58803fa3 Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Sun, 26 Jan 2014 20:56:55 -0700 Subject: Added horizontal rule for all pages above the footer --- foundation-default-colours/templates/base.html | 1 + foundation-default-colours/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'foundation-default-colours/templates') diff --git a/foundation-default-colours/templates/base.html b/foundation-default-colours/templates/base.html index 69ad3a3..9d0ff88 100644 --- a/foundation-default-colours/templates/base.html +++ b/foundation-default-colours/templates/base.html @@ -180,6 +180,7 @@