From 1f3170df75d42d1cab8860080d0c254fb1d9355e Mon Sep 17 00:00:00 2001 From: kosmgco Date: Mon, 27 Feb 2017 15:26:45 +0800 Subject: update --- ops/templates/_includes/footer.html | 7 ++++ ops/templates/_includes/header.html | 10 +++++ ops/templates/archives.html | 25 +++++++++++ ops/templates/article.html | 62 +++++++++++++++++++++++++++ ops/templates/base.html | 84 +++++++++++++++++++++++++++++++++++++ ops/templates/categories.html | 24 +++++++++++ ops/templates/category.html | 23 ++++++++++ ops/templates/index.html | 44 +++++++++++++++++++ ops/templates/page.html | 38 +++++++++++++++++ ops/templates/tag.html | 24 +++++++++++ ops/templates/tags.html | 18 ++++++++ 11 files changed, 359 insertions(+) create mode 100644 ops/templates/_includes/footer.html create mode 100644 ops/templates/_includes/header.html create mode 100644 ops/templates/archives.html create mode 100644 ops/templates/article.html create mode 100644 ops/templates/base.html create mode 100644 ops/templates/categories.html create mode 100644 ops/templates/category.html create mode 100644 ops/templates/index.html create mode 100644 ops/templates/page.html create mode 100644 ops/templates/tag.html create mode 100644 ops/templates/tags.html (limited to 'ops/templates') diff --git a/ops/templates/_includes/footer.html b/ops/templates/_includes/footer.html new file mode 100644 index 0000000..16ea774 --- /dev/null +++ b/ops/templates/_includes/footer.html @@ -0,0 +1,7 @@ + diff --git a/ops/templates/_includes/header.html b/ops/templates/_includes/header.html new file mode 100644 index 0000000..1334a16 --- /dev/null +++ b/ops/templates/_includes/header.html @@ -0,0 +1,10 @@ +
+
+

{{ SITENAME }}

+

{{ SITEDESCRIPTION }}

+ {% for title,url in SOCIAL %} + + + + {% endfor %} +
diff --git a/ops/templates/archives.html b/ops/templates/archives.html new file mode 100644 index 0000000..fec9086 --- /dev/null +++ b/ops/templates/archives.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} + +{% block title %} {{ SITENAME }} - Archives {% endblock %} + +{% block container %} +
+
+

Archives

+
+
+ {% for article in dates %} +
{{ article.locale_date }}
+
+ + {{ article.title }} +
+ {% endfor %} +
+
+


+{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} \ No newline at end of file diff --git a/ops/templates/article.html b/ops/templates/article.html new file mode 100644 index 0000000..3cc33dd --- /dev/null +++ b/ops/templates/article.html @@ -0,0 +1,62 @@ +{% extends 'base.html' %} + +{% block title %} {{ article.title|striptags }}{% endblock title %} + +{% block container %} +
+ +
+ {% if DUOSHUONAME and article.comment %} + +
+ + {% else %} +



+ {% endif %} + {% if JIATHIS and article.jiathis %} + +
+ 分享到: + + + + + 更多 + +
+ + + {% endif %} + +{% endblock container %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} diff --git a/ops/templates/base.html b/ops/templates/base.html new file mode 100644 index 0000000..7db825b --- /dev/null +++ b/ops/templates/base.html @@ -0,0 +1,84 @@ + + + + + {% block title %} {{ SITENAME }}{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {% block container %} + {% endblock %} +
+ +{% block footer %} +{% endblock %} + + + + diff --git a/ops/templates/categories.html b/ops/templates/categories.html new file mode 100644 index 0000000..26396bb --- /dev/null +++ b/ops/templates/categories.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} + +{% block title %} {{ SITENAME }} - Categories {% endblock %} + +{% block container %} +
+
+

Categories

+
+
+ {% for category, articles in categories %} +
+ {{ category }}({{ articles|count }}) +
+ {% endfor %} +
+
+


+ +{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} \ No newline at end of file diff --git a/ops/templates/category.html b/ops/templates/category.html new file mode 100644 index 0000000..e5e601a --- /dev/null +++ b/ops/templates/category.html @@ -0,0 +1,23 @@ +{% extends 'base.html' %} + +{% block title %} {{ SITENAME }} - {{ category }} {% endblock %} + +{% block container %} +
+
+

{{ category }}

+
+
+

{{ category }}

+ {% for article in articles|sort %} +
+ {{ article.title }} +
+ {% endfor %} +
+
+{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} \ No newline at end of file diff --git a/ops/templates/index.html b/ops/templates/index.html new file mode 100644 index 0000000..f388bae --- /dev/null +++ b/ops/templates/index.html @@ -0,0 +1,44 @@ +{% extends 'base.html' %} + +{% block container %} +
+ {% include '_includes/header.html' %} +
+ +
+

+ Recent blog posts +

+
+ {% for article in articles[0:3] %} +
+

{{ article.locale_date }}

+
{{ article.title }}
+

+

{{ article.summary }}

+
+
+ More... +
+ {% endfor %} +
+
+


+
+
+
+

Links

+
+ {% for title,url in LINKS %} + {{ title }}    + {% endfor %} +
+
+
+
+{% endblock %} + + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} 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 %} diff --git a/ops/templates/tag.html b/ops/templates/tag.html new file mode 100644 index 0000000..0131849 --- /dev/null +++ b/ops/templates/tag.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} + +{% block title %} {{ SITENAME }} - {{ tag }} {% endblock %} + +{% block container %} +
+
+

Articles - {{ tag }}

+
+
+

{{ tag }}

+ {% for article in articles|sort %} + +
+ {{ article.title }} +
+ {% endfor %} +
+
+{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} \ No newline at end of file diff --git a/ops/templates/tags.html b/ops/templates/tags.html new file mode 100644 index 0000000..cbfd61f --- /dev/null +++ b/ops/templates/tags.html @@ -0,0 +1,18 @@ +{% extends 'base.html' %} +{% block title %} {{ SITENAME }} - Tags {% endblock %} + +{% block container %} + +
+
+ {% for tag,articles in tags|sort %} + {{ tag }}({{ articles|count }}) + {% endfor %} +
+



+ +{% endblock %} + +{% block footer %} + {% include '_includes/footer.html' %} +{% endblock %} \ No newline at end of file -- cgit