From 6a20b0c18e5093219ae9393f3864354c46bb05cf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 22 Sep 2024 12:58:12 -0700 Subject: add a menu and improve readability Add a menu with links to some sections. Tweak the CSS to make the website a bit more readable. --- templates/base.html | 18 ++++++++++++++- templates/blog.html | 17 +++++++-------- templates/index.html | 59 +++++++++++++++++++++++--------------------------- templates/orphan.html | 5 +++-- templates/page.html | 27 ++++++++--------------- templates/section.html | 10 ++++----- 6 files changed, 69 insertions(+), 67 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 75d108c..b903da3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,16 +5,32 @@ + + {% block title %}{{- config.title -}}{% endblock title %} - {% block content %}{% endblock content %} +
+ + +
+ {% block content %}{% endblock content %} +
+
diff --git a/templates/blog.html b/templates/blog.html index 0e3c2bf..cfdd8c2 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -1,20 +1,19 @@ {% extends "section.html" %} {%- block content -%} -

{{ section.title }}

-{%- for year, posts in section.pages | group_by(attribute="year") -%} -
-

{{ year }}

-