From be772f40c42711de54a3331db2781b1511acba9d Mon Sep 17 00:00:00 2001 From: garhve Date: Mon, 2 Jan 2023 06:02:01 +0800 Subject: change to zola --- templates/base.html | 43 +++++++++++++++++++++++++++++++++++++++ templates/categories/list.html | 18 ++++++++++++++++ templates/categories/single.html | 21 +++++++++++++++++++ templates/index.html | 36 ++++++++++++++++++++++++++++++++ templates/post-page.html | 44 ++++++++++++++++++++++++++++++++++++++++ templates/tags/list.html | 18 ++++++++++++++++ templates/tags/single.html | 21 +++++++++++++++++++ 7 files changed, 201 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/categories/list.html create mode 100644 templates/categories/single.html create mode 100644 templates/index.html create mode 100644 templates/post-page.html create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..590d592 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,43 @@ + + + + + + {% block title %} + {{ config.title }} + {% endblock %} + + + + + + + + + + +
+ + +
+ + +
+
+ {% block content %} {% endblock %} +
+
+ + + + + diff --git a/templates/categories/list.html b/templates/categories/list.html new file mode 100644 index 0000000..b6d98c2 --- /dev/null +++ b/templates/categories/list.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %} +Categories +{% endblock %} + +{% block content %} +

[Categories]

+ + +{% endblock content %} \ No newline at end of file diff --git a/templates/categories/single.html b/templates/categories/single.html new file mode 100644 index 0000000..b02797e --- /dev/null +++ b/templates/categories/single.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %} +{{ term.name }} | {{ config.title }} +{% endblock %} + +{% block content %} +

[Category: {{ term.name }}]

+ +{% for page in term.pages %} +

+

+ {{ page.date }} +
+
+ {{ page.title }} +
+

+{% endfor %} + +{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..64ac3cd --- /dev/null +++ b/templates/index.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block content %} + +{% set section = get_section(path="post/_index.md") %} +{% for year, pages in section.pages | group_by(attribute="year") %} +

{{ year}}

+ + {% for page in pages %} +

+

+ {{ page.date }} +
+ +
+ {{ page.title }} +
+ +
+ {% if page.taxonomies.categories %} + {% for category in page.taxonomies.categories %} +  /{{ category }} + {% endfor %} + {% endif %} + + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} +  #{{ tag }} + {% endfor %} + {% endif %} +
+

+ {% endfor %} +{% endfor %} + +{% endblock content %} diff --git a/templates/post-page.html b/templates/post-page.html new file mode 100644 index 0000000..894a27d --- /dev/null +++ b/templates/post-page.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} + +{% block title %} +{{ page.title }} | {{ config.title }} +{% endblock %} + +{% block content %} +

+

{{ page.title }}
+

+

+

{{ page.date }}
+
+ {% if page.taxonomies.categories %} + {% for category in page.taxonomies.categories %} + /{{ category }} + {% endfor %} + {% endif %} + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} +  #{{ tag }} + {% endfor %} + {% endif %} +
+

+ +

+ {{ page.content | safe }} +

+ +{% if page.extra.math %} + + +{% endif %} + +{% endblock content %} diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..2b5a16c --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %} +Tags +{% endblock %} + +{% block content %} +

[Tags]

+ + +{% endblock content %} \ No newline at end of file diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..0549304 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %} +{{ term.name }} | {{ config.title }} +{% endblock %} + +{% block content %} +

[Tag: {{ term.name }}]

+ +{% for page in term.pages %} +

+

+ {{ page.date }} +
+
+ {{ page.title }} +
+

+{% endfor %} + +{% endblock content %} \ No newline at end of file -- cgit v1.2.3-70-g09d2