From 6d3b8739287f8f1c89211b1c785342c2ce9050f5 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 1 Nov 2023 21:02:09 +0100 Subject: pokpok --- templates/404.html | 13 +++++++++++ templates/base.html | 20 ++++++++++++++++- templates/blog-article.html | 22 +++++++++++-------- templates/blog.html | 49 ++++++++++++++++++++++++++++++++++++++---- templates/index.html | 34 ++++++++++++++++++++++++----- templates/page.html | 11 +++++++--- templates/tags/list.html | 21 ++++++++++++++++++ templates/tags/single.html | 20 +++++++++++++++++ templates/taxonomy_list.html | 7 ------ templates/taxonomy_single.html | 13 ----------- 10 files changed, 168 insertions(+), 42 deletions(-) create mode 100644 templates/404.html create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html delete mode 100644 templates/taxonomy_list.html delete mode 100644 templates/taxonomy_single.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..d8f00d2 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %} +{{ config.title }} +{% endblock %} + +{% block content %} + +
+

Page not found

+
+ +{% endblock %} diff --git a/templates/base.html b/templates/base.html index f3c81fb..09d787b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,15 +2,33 @@ - Steven Le Rouzic + {% block title %}{% endblock %} + + {% block content %}{% endblock %} + diff --git a/templates/blog-article.html b/templates/blog-article.html index ccdd019..52d054c 100644 --- a/templates/blog-article.html +++ b/templates/blog-article.html @@ -1,17 +1,21 @@ {% extends "base.html" %} +{% block title %} +{{ page.title }} - {{ config.title }} +{% endblock %} + {% block content %}
-

{{ page.title }}

-
-

{{ page.date | date(format="%B %-d, %Y") }}

-

- {% for tag in page.taxonomies["tags"] %} - #{{ tag }} - {%- endfor %} -

-
+

{{ page.title }}

+
+

{{ page.date | date(format="%B %-d, %Y") }}

+

+ {% for tag in page.taxonomies["tags"] %} + #{{ tag }} + {%- endfor %} +

+
diff --git a/templates/blog.html b/templates/blog.html index a0d2450..a955f42 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -1,11 +1,52 @@ {% extends "base.html" %} +{% block title %} +Blog - {{ config.title }} +{% endblock %} + {% block content %} - + + {% endblock %} diff --git a/templates/index.html b/templates/index.html index f8df5f9..865ed3f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,38 @@ {% extends "base.html" %} +{% block title %} +{{ config.title }} +{% endblock %} + {% block content %} + + {% set blog_section = get_section(path="blog/_index.md") %} - + + {% endblock %} diff --git a/templates/page.html b/templates/page.html index 0e5679f..fa23b99 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,9 +1,14 @@ {% extends "base.html" %} -{% block content %} +{% block title %} +{{ page.title }} - {{ config.title }} +{% endblock %} -

{{ page.title }}

+{% block content %} -{{ page.content | safe }} +
+

{{ page.title }}

+ {{ page.content | safe }} +
{% endblock %} diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..c18899d --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %} +Tags - {{ config.title }} +{% endblock %} + +{% block content %} + +
+

Tags

+
+ +
+
    + {% for term in terms %} +
  • {{ term.name }} ({{ term.page_count }})
  • + {% endfor %} +
+
+ +{% endblock %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..a08695c --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %} +{{ term.name }} - {{ config.title }} +{% endblock %} + +{% block content %} + +
+

{{ term.name }}

+
+
+
    + {% for page in term.pages %} +
  • {{ page.title }} - {{ page.date | date(format="%B %-d, %Y") }}
  • + {% endfor %} +
+
+ +{% endblock %} diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html deleted file mode 100644 index df8f63f..0000000 --- a/templates/taxonomy_list.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -

{{ taxonomy.name }}: multiple

- -{% endblock %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html deleted file mode 100644 index 3a75df8..0000000 --- a/templates/taxonomy_single.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -

{{ taxonomy.name }}: {{ term.name }}

- - - -{% endblock %} -- cgit