From c0ccec669363d7757403d2c50c8e6a0934307b04 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 9 Jun 2017 21:02:27 +0200 Subject: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- kyrias_website/templates/archive.html | 12 ++++++++++ kyrias_website/templates/base.html | 41 +++++++++++++++++++++++++++++++++++ kyrias_website/templates/entry.html | 41 +++++++++++++++++++++++++++++++++++ kyrias_website/templates/page.html | 27 +++++++++++++++++++++++ kyrias_website/templates/tags.html | 19 ++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 kyrias_website/templates/archive.html create mode 100644 kyrias_website/templates/base.html create mode 100644 kyrias_website/templates/entry.html create mode 100644 kyrias_website/templates/page.html create mode 100644 kyrias_website/templates/tags.html (limited to 'kyrias_website/templates') diff --git a/kyrias_website/templates/archive.html b/kyrias_website/templates/archive.html new file mode 100644 index 0000000..2399c90 --- /dev/null +++ b/kyrias_website/templates/archive.html @@ -0,0 +1,12 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Archive

+ +
+{% endblock %} diff --git a/kyrias_website/templates/base.html b/kyrias_website/templates/base.html new file mode 100644 index 0000000..7664e57 --- /dev/null +++ b/kyrias_website/templates/base.html @@ -0,0 +1,41 @@ + + + + + + {% assets "css_all" %} + + {% endassets %} +{% block head %}{% endblock %} + + + +
+ +
+
+
+{% block content %}{% endblock %} +
+
+
+
+

© 2017 Johannes Löthberg

+
+ +
+ +
+
+ + diff --git a/kyrias_website/templates/entry.html b/kyrias_website/templates/entry.html new file mode 100644 index 0000000..8391505 --- /dev/null +++ b/kyrias_website/templates/entry.html @@ -0,0 +1,41 @@ +{% extends 'base.html' %} + +{% block head %} +{{ entry.title }} +{% endblock %} + +{% block content %} +
+
+

{{ entry.title }}

+ +
+
+ {{ entry.html|safe }} +
+
+ {% if 'tags' in entry.meta %} +
+ Tags: + {% set comma = joiner(",") %} + {% for tag in entry.meta.tags %}{{ comma() }} + {{ tag }}{% endfor %} +
+ {% endif %} +
+
+{% if older or newer %} + +{% endif %} +{% endblock %} + diff --git a/kyrias_website/templates/page.html b/kyrias_website/templates/page.html new file mode 100644 index 0000000..cca59af --- /dev/null +++ b/kyrias_website/templates/page.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} + +{% block head %} +{{ page.title }} +{% endblock %} + +{% block content %} +
+
+

{{ page.title }}

+ +
+
+ {{ page.html|safe }} +
+
+ {% if 'tags' in page.meta %} +
+ Tags: + {% set comma = joiner(",") %} + {% for tag in page.meta.tags %}{{ comma() }} + {{ tag }}{% endfor %} +
+ {% endif %} +
+
+{% endblock %} diff --git a/kyrias_website/templates/tags.html b/kyrias_website/templates/tags.html new file mode 100644 index 0000000..a553523 --- /dev/null +++ b/kyrias_website/templates/tags.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Tags

+ {% for tag in tags %} +
+

{{ tag }}

+ +
    + {% for entry in tags[tag] %} +
  • {{ entry.meta.date }} — {{ entry.title }}
  • + {% endfor %} +
+
+ {% endfor %} +
+{% endblock %} + -- cgit v1.2.3-70-g09d2