From 1f3170df75d42d1cab8860080d0c254fb1d9355e Mon Sep 17 00:00:00 2001 From: kosmgco Date: Mon, 27 Feb 2017 15:26:45 +0800 Subject: update --- ops/templates/page.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ops/templates/page.html (limited to 'ops/templates/page.html') diff --git a/ops/templates/page.html b/ops/templates/page.html new file mode 100644 index 0000000..ca79465 --- /dev/null +++ b/ops/templates/page.html @@ -0,0 +1,38 @@ +{% extends 'base.html' %} + +{% block title %}{{ SITENAME }} - {{ page.title }} {% endblock %} + +{% block container %} + {% if page.title == 'blog' %} +
+
+

Articles in {{ AUTHOR }}'s blog

+
+
+ {% for category,articles in categories %} +

+ {{ category }} +

+ {% for article in articles %} +
+ {{ article.title }} +
+ {% endfor %} + {% endfor %} +
+
+


+ {% else %} +
+
+

{{ page.title }}

+
+ {{ page.content }} +
+


+ {% endif %} +{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} -- cgit