From 59f410673f0326a663f0aaba1b76dab4a21e33c4 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Wed, 18 Aug 2010 15:10:43 +0200 Subject: [PATCH] Add the notmyidea theme + settings as an example. --- samples/test_settings.py | 18 +++++++ samples/themes/notmyidea/archives.html | 13 +++++ samples/themes/notmyidea/article.html | 17 ++++++ samples/themes/notmyidea/base.html | 66 ++++++++++++++++++++++++ samples/themes/notmyidea/categories.html | 0 samples/themes/notmyidea/category.html | 0 samples/themes/notmyidea/index.html | 34 ++++++++++++ samples/themes/notmyidea/tag.html | 0 samples/themes/notmyidea/tags.html | 0 9 files changed, 148 insertions(+) create mode 100644 samples/test_settings.py create mode 100644 samples/themes/notmyidea/archives.html create mode 100644 samples/themes/notmyidea/article.html create mode 100644 samples/themes/notmyidea/base.html create mode 100644 samples/themes/notmyidea/categories.html create mode 100644 samples/themes/notmyidea/category.html create mode 100644 samples/themes/notmyidea/index.html create mode 100644 samples/themes/notmyidea/tag.html create mode 100644 samples/themes/notmyidea/tags.html diff --git a/samples/test_settings.py b/samples/test_settings.py new file mode 100644 index 00000000..bfb33089 --- /dev/null +++ b/samples/test_settings.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +BLOGNAME = 'NotMyIdea.org' +BLOGSUBTITLE = u"Alexis Métaireau's weblog" +BLOGURL = 'http://blog.notmyidea.org' + +BLOGROLL = (('Biologeek', 'http://biologeek.org'), + ('Filyb', "http://filyb.info/"), + ('Libert-fr', "http://www.libert-fr.com"), + ('N1k0', "http://prendreuncafe.com/blog/"), + (u'Tarek Ziadé', "http://ziade.org/blog"), + ('Zubin Mithra', "http://zubin71.wordpress.com/"),) + +MENUITEMS = (('home', 'http://notmyidea.org'), + ('contact', 'mailto: alexis notmyidea org'),) + +SOCIAL = (('twitter', 'http://twitter.com/ametaireau'), + ('lastfm', 'http://lastfm.com/user/akounet'),) diff --git a/samples/themes/notmyidea/archives.html b/samples/themes/notmyidea/archives.html new file mode 100644 index 00000000..d99aad6d --- /dev/null +++ b/samples/themes/notmyidea/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +

Archives for {{ BLOGNAME }}

+ +
+{% for date, articles in dates %} + {% for article in articles %} +
{{ date }}
+
{{ article.title }}
+ {% endfor %} +{% endfor %} +
+{% endblock %} diff --git a/samples/themes/notmyidea/article.html b/samples/themes/notmyidea/article.html new file mode 100644 index 00000000..a9755195 --- /dev/null +++ b/samples/themes/notmyidea/article.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block content %} +
+

{{ article.title }}

+ +
+ {{ article.content }} +
+
+{% endblock %} diff --git a/samples/themes/notmyidea/base.html b/samples/themes/notmyidea/base.html new file mode 100644 index 00000000..5e08829a --- /dev/null +++ b/samples/themes/notmyidea/base.html @@ -0,0 +1,66 @@ + + + + {% block title %}{{ BLOGNAME }}{%endblock%} + + + + + + + + + + + + + + + {% block content %} + {% endblock %} +
+ {% if BLOGROLL %} +
+

blogroll

+
    + {% for name, link in BLOGROLL %} +
  • {{ name }}
  • + {% endfor %} +
+
+ {% endif %} + {% if SOCIAL %} + + {% endif %} +
+ + + + + diff --git a/samples/themes/notmyidea/categories.html b/samples/themes/notmyidea/categories.html new file mode 100644 index 00000000..e69de29b diff --git a/samples/themes/notmyidea/category.html b/samples/themes/notmyidea/category.html new file mode 100644 index 00000000..e69de29b diff --git a/samples/themes/notmyidea/index.html b/samples/themes/notmyidea/index.html new file mode 100644 index 00000000..39967dc0 --- /dev/null +++ b/samples/themes/notmyidea/index.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block content %} +{% for article in articles %} + {% if loop.index == 1 %} + +
+
    + {% else %} +
  1. + {% endif %} +{% endfor %} +
+
+{% endblock content %} diff --git a/samples/themes/notmyidea/tag.html b/samples/themes/notmyidea/tag.html new file mode 100644 index 00000000..e69de29b diff --git a/samples/themes/notmyidea/tags.html b/samples/themes/notmyidea/tags.html new file mode 100644 index 00000000..e69de29b