From bf56a9edfcca610bc771e0176f72bbce59fcc87a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 26 Dec 2024 19:01:18 -0800 Subject: large cleanup --- templates/base.html | 26 +++++++++++++++----------- templates/bike.html | 10 ---------- templates/index.html | 29 +++++++++++++++-------------- templates/page.html | 12 ++---------- templates/resume.html | 10 ---------- templates/tags/list.html | 12 ------------ templates/tags/single.html | 14 -------------- 7 files changed, 32 insertions(+), 81 deletions(-) delete mode 100644 templates/bike.html delete mode 100644 templates/resume.html delete mode 100644 templates/tags/list.html delete mode 100644 templates/tags/single.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index ba2afdb..729abb9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,24 +1,28 @@ - - + + - + - - - - + {% block title %}{{- config.title -}}{% endblock title %} -
- {% block content %}{% endblock content %} -
+
{% block content %}{% endblock content %}
- diff --git a/templates/bike.html b/templates/bike.html deleted file mode 100644 index db8634a..0000000 --- a/templates/bike.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} -

{{- page.title -}}

- -{{ page.content | safe -}} - -{%- endblock content -%} diff --git a/templates/index.html b/templates/index.html index 43b50d1..0425f26 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,15 @@ -{% extends "base.html" %} - -{%- block content -%} - -{% if section.content %} - {{ section.content | safe }} -{% endif %} - -{% set blogtags = get_taxonomy(kind="tags") %} -{% for tag in blogtags.items %} - #{{ tag.name }} -{% endfor %} - -{%- endblock content -%} +{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ +section.content | safe }} {% endif %} + +
+ +{%- for post in section.pages -%} +
+ +
+{%- endfor -%} {%- endblock content -%} diff --git a/templates/page.html b/templates/page.html index 94b39ac..e027d8f 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,17 +1,9 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} +{% extends "base.html" %} {% block title %}{{ page.title }} - {{ config.title +}}{% endblock title %} {% block content -%}

{{ page.title }}

{{ page.date | date(format="%Y-%m-%d") }} - {%- if page.taxonomies.tags -%} -  / {% for tag in page.taxonomies.tags %} - #{{ tag }} - {% endfor %} - {%- endif -%}
{{ page.content | safe -}} diff --git a/templates/resume.html b/templates/resume.html deleted file mode 100644 index db8634a..0000000 --- a/templates/resume.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content -%} -

{{- page.title -}}

- -{{ page.content | safe -}} - -{%- endblock content -%} diff --git a/templates/tags/list.html b/templates/tags/list.html deleted file mode 100644 index b7f904a..0000000 --- a/templates/tags/list.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

Tags

- -{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html deleted file mode 100644 index 31432e4..0000000 --- a/templates/tags/single.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

#{{ term.name }}

-
- -{% endblock content %} -- cgit v1.2.3