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/index.html | 59 ++++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 32 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 5c11ab3..cf3e4b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,38 +1,33 @@ {% extends "base.html" %} {%- block content -%} -
-{% if section.content %} -
- {{ section.content | safe }} -
-{% endif %} - -

articles ⇢

-{%- set blog = get_section(path="blog/_index.md") -%} -{%- set post_count = blog.pages | length -%} -{%- for post in blog.pages %} - -{%- endfor %} - -

notes ⇢

-{%- set notes = get_section(path="notes/_index.md") -%} -{%- set post_count = notes.pages | length -%} -{%- for post in notes.pages %} - -{%- endfor %} - -

contact

- -Email: franck@fcuny.net - -
+
+
+ articles ⇢ + {%- set blog = get_section(path="blog/_index.md") -%} + {%- set post_count = blog.pages | length -%} +
    + {%- for post in blog.pages %} +
  • + {{ post.title }} + +
  • + {%- endfor %} +
+ + notes ⇢ + {%- set notes = get_section(path="notes/_index.md") -%} + {%- set post_count = notes.pages | length -%} +
    + {%- for post in notes.pages %} +
  • + {{ post.title }} + +
  • + {%- endfor %} +
+
+
{%- endblock content -%} -- cgit v1.2.3