From b543f5d15705f02f7055c2abc1f424b3fb47d71a Mon Sep 17 00:00:00 2001 From: Matts Date: Wed, 25 Jan 2012 21:24:32 -0500 Subject: Added tuxlite theme, which is inspired by the original bootstrap theme. Built using twitter bootstrap v2.0, with responsive layout. --- tuxlite_tbs/templates/analytics.html | 3 + tuxlite_tbs/templates/archives.html | 15 ++++ tuxlite_tbs/templates/article.html | 17 +++++ tuxlite_tbs/templates/author.html | 2 + tuxlite_tbs/templates/base.html | 134 ++++++++++++++++++++++++++++++++++ tuxlite_tbs/templates/categories.html | 10 +++ tuxlite_tbs/templates/category.html | 2 + tuxlite_tbs/templates/disqus.html | 10 +++ tuxlite_tbs/templates/github.html | 3 + tuxlite_tbs/templates/index.html | 47 ++++++++++++ tuxlite_tbs/templates/metadata.html | 13 ++++ tuxlite_tbs/templates/page.html | 10 +++ tuxlite_tbs/templates/pagination.html | 21 ++++++ tuxlite_tbs/templates/tag.html | 2 + tuxlite_tbs/templates/tags.html | 9 +++ tuxlite_tbs/templates/twitter.html | 3 + 16 files changed, 301 insertions(+) create mode 100644 tuxlite_tbs/templates/analytics.html create mode 100644 tuxlite_tbs/templates/archives.html create mode 100644 tuxlite_tbs/templates/article.html create mode 100644 tuxlite_tbs/templates/author.html create mode 100644 tuxlite_tbs/templates/base.html create mode 100644 tuxlite_tbs/templates/categories.html create mode 100644 tuxlite_tbs/templates/category.html create mode 100644 tuxlite_tbs/templates/disqus.html create mode 100644 tuxlite_tbs/templates/github.html create mode 100644 tuxlite_tbs/templates/index.html create mode 100644 tuxlite_tbs/templates/metadata.html create mode 100644 tuxlite_tbs/templates/page.html create mode 100644 tuxlite_tbs/templates/pagination.html create mode 100644 tuxlite_tbs/templates/tag.html create mode 100644 tuxlite_tbs/templates/tags.html create mode 100644 tuxlite_tbs/templates/twitter.html (limited to 'tuxlite_tbs/templates') diff --git a/tuxlite_tbs/templates/analytics.html b/tuxlite_tbs/templates/analytics.html new file mode 100644 index 0000000..62f8511 --- /dev/null +++ b/tuxlite_tbs/templates/analytics.html @@ -0,0 +1,3 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} \ No newline at end of file diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html new file mode 100644 index 0000000..2d02e12 --- /dev/null +++ b/tuxlite_tbs/templates/archives.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} [archive]{% endblock %} +{% block content %} +{% for year, date_year in dates|groupby( 'date.year' ) %} +

{{ year }}

+{% for month, articles in date_year|groupby( 'date.month' ) %} +

{{ articles[ 0 ].date.strftime( '%B' ) }}

+ +{% endfor %} +{% endfor %} +{% endblock %} diff --git a/tuxlite_tbs/templates/article.html b/tuxlite_tbs/templates/article.html new file mode 100644 index 0000000..23e3c86 --- /dev/null +++ b/tuxlite_tbs/templates/article.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block content %} +
+
+

{{ article.title }}

+ {% include "metadata.html" %} +
+ +
{{ article.content }}
+ +
+ +

Comments

+ {% include "twitter.html" %} + {% if DISQUS_SITENAME %}
{% endif %} +
+{% endblock %} diff --git a/tuxlite_tbs/templates/author.html b/tuxlite_tbs/templates/author.html new file mode 100644 index 0000000..5b41b41 --- /dev/null +++ b/tuxlite_tbs/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} {{ author }}{% endblock %} \ No newline at end of file diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html new file mode 100644 index 0000000..346837a --- /dev/null +++ b/tuxlite_tbs/templates/base.html @@ -0,0 +1,134 @@ + + + + + {% block windowtitle %}{{ SITENAME }}{% endblock %} + + + + + + + + + + + + + + + + {% include "github.html" %} + +
+ +
+
+
+ +
+ {% block content %}{% endblock %} +
+ +
+ + {% if categories %} +
+ +
+ {% endif %} + + {% if LINKS %} +
+ +
+ {% endif %} + + {% if SOCIAL %} + + {% endif %} + + {#

Documentation

#} + {#
    #} + {# {% for page in PAGES %} #} + {# {% if page.category|lower == "documentation" %} #} + {#
  • {{ page.title }}
  • #} + {# {% endif %} #} + {# {% endfor %} #} + {#
#} + +
{# End span3 #} +
{# End row #} +
{# End content #} + +
+
+

{{ SITENAME }} © {{ AUTHOR }} 2012

+
+ +
+ +{% include "analytics.html" %} +{% include "disqus.html" %} + + + diff --git a/tuxlite_tbs/templates/categories.html b/tuxlite_tbs/templates/categories.html new file mode 100644 index 0000000..c96774d --- /dev/null +++ b/tuxlite_tbs/templates/categories.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} [categories]{% endblock %} +{% block content %} + + +{% endblock %} diff --git a/tuxlite_tbs/templates/category.html b/tuxlite_tbs/templates/category.html new file mode 100644 index 0000000..52215e6 --- /dev/null +++ b/tuxlite_tbs/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} {{ category }}{% endblock %} \ No newline at end of file diff --git a/tuxlite_tbs/templates/disqus.html b/tuxlite_tbs/templates/disqus.html new file mode 100644 index 0000000..9ba2e42 --- /dev/null +++ b/tuxlite_tbs/templates/disqus.html @@ -0,0 +1,10 @@ +{% if DISQUS_SITENAME and article %} + +{% endif %} \ No newline at end of file diff --git a/tuxlite_tbs/templates/github.html b/tuxlite_tbs/templates/github.html new file mode 100644 index 0000000..4c3d935 --- /dev/null +++ b/tuxlite_tbs/templates/github.html @@ -0,0 +1,3 @@ +{% if GITHUB_URL %} +Fork me on GitHub +{% endif %} diff --git a/tuxlite_tbs/templates/index.html b/tuxlite_tbs/templates/index.html new file mode 100644 index 0000000..45a491d --- /dev/null +++ b/tuxlite_tbs/templates/index.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + +{% if articles %} +{% for article in articles_page.object_list %} + +{# First item #} +{% if loop.first and not articles_page.has_previous() %} + +
+
+

{{ article.title }}

+ {% include "metadata.html" %} +
+
{{ article.content }}
+
+ + {% if loop.length == 1 %} + {% include 'pagination.html' %} + {% endif %} + + {% if loop.length > 1 %} +
+
+

Other Entries

+ {% endif %} + +{# other items #} +{% else %} + +
+

{{ article.title }}

+
{% include "metadata.html" %}
+
{{ article.summary }} read more
+
+ + {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} + +{% endif %} {# First item if #} + +{% endfor %} {# For article #} +{% endif %} {# If articles #} + +{% endblock content %} diff --git a/tuxlite_tbs/templates/metadata.html b/tuxlite_tbs/templates/metadata.html new file mode 100644 index 0000000..cb04053 --- /dev/null +++ b/tuxlite_tbs/templates/metadata.html @@ -0,0 +1,13 @@ +{{ article.date.strftime("%d %b %Y") }} + +{% if article.author %} +by {{ article.author }} +{% endif %} + +{# Filed under {{ article.category }} #} + +{# +{% if article.tags %} + Tags {% for tag in article.tags %}{{ tag }} {% endfor %} +{% endif %} +#} diff --git a/tuxlite_tbs/templates/page.html b/tuxlite_tbs/templates/page.html new file mode 100644 index 0000000..65470ea --- /dev/null +++ b/tuxlite_tbs/templates/page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block title %} {% endblock %} +{% block content %} +
+

{{ page.title }}

+ {% if PDF_PROCESSOR %}get + the pdf{% endif %} + {{ page.content }} +
+{% endblock %} diff --git a/tuxlite_tbs/templates/pagination.html b/tuxlite_tbs/templates/pagination.html new file mode 100644 index 0000000..6783ae5 --- /dev/null +++ b/tuxlite_tbs/templates/pagination.html @@ -0,0 +1,21 @@ + diff --git a/tuxlite_tbs/templates/tag.html b/tuxlite_tbs/templates/tag.html new file mode 100644 index 0000000..ce6dcb7 --- /dev/null +++ b/tuxlite_tbs/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} {{ tag }}{% endblock %} \ No newline at end of file diff --git a/tuxlite_tbs/templates/tags.html b/tuxlite_tbs/templates/tags.html new file mode 100644 index 0000000..df6f55f --- /dev/null +++ b/tuxlite_tbs/templates/tags.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} [tgs]{% endblock %} +{% block content %} + +{% endblock %} diff --git a/tuxlite_tbs/templates/twitter.html b/tuxlite_tbs/templates/twitter.html new file mode 100644 index 0000000..c6b159f --- /dev/null +++ b/tuxlite_tbs/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +Tweet +{% endif %} \ No newline at end of file -- cgit v1.1