From d9ae9febd9668f89c8694b66d7a0323027d416b2 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 14 Oct 2014 01:22:31 +0200 Subject: redo website using bupa, ReST, and jinja templates --- src/templates/journal.html | 33 +++++++++++++++++++++++++++++++++ src/templates/layout.html | 36 ++++++++++++++++++++++++++++++++++++ src/templates/nav.html | 7 +++++++ src/templates/page.html | 17 +++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 src/templates/journal.html create mode 100644 src/templates/layout.html create mode 100644 src/templates/nav.html create mode 100644 src/templates/page.html (limited to 'src/templates') diff --git a/src/templates/journal.html b/src/templates/journal.html new file mode 100644 index 0000000..0269d2e --- /dev/null +++ b/src/templates/journal.html @@ -0,0 +1,33 @@ +{% extends 'layout.html' %} + +{% block content %} +
+{% include 'nav.html' %} +

The lost journal

+
+ +{% for entry in entries %} +
+ +

{{ entry.title }}

+ +
+ Published on + + + +
+ + {{ entry.body }} +
+{% endfor %} +{% endblock content %} diff --git a/src/templates/layout.html b/src/templates/layout.html new file mode 100644 index 0000000..45ab99d --- /dev/null +++ b/src/templates/layout.html @@ -0,0 +1,36 @@ + + + + + {{ title }} + + + + + + +{% block content %}{% endblock %} + + + diff --git a/src/templates/nav.html b/src/templates/nav.html new file mode 100644 index 0000000..e40b4ed --- /dev/null +++ b/src/templates/nav.html @@ -0,0 +1,7 @@ + diff --git a/src/templates/page.html b/src/templates/page.html new file mode 100644 index 0000000..9e0dddc --- /dev/null +++ b/src/templates/page.html @@ -0,0 +1,17 @@ +{% extends 'layout.html' %} + +{% block content %} +
+{% include 'nav.html' %} +

{{ page.title }}

+
+ +
+ + {{ page.body }} + +

Last updated

+

+ +
+{% endblock content %} -- cgit v1.2.3-70-g09d2