From f934df8bc8fd0c8d19436f1b51a61e1f3f6bd08e Mon Sep 17 00:00:00 2001 From: Nikolas Date: Mon, 28 Oct 2024 12:38:54 +0200 Subject: index: add notes section --- templates/index.html | 21 ++++++++++----------- templates/notes-page.html | 4 ++++ templates/notes.html | 8 ++++++++ 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 templates/notes-page.html create mode 100644 templates/notes.html (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 45d963e..4f63b15 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,13 +1,12 @@ {% extends "base.html" %} {% block body %} -
-

Archive of Nikolas Boutalas

-

Opinions are (hopefully) my own.

-
- -
-

Links

- -
+

Archive

+

Opinions are (hopefully) my own.

+{% set notes_section = get_section(path="notes/_index.md") %} +

{{notes_section.title}}

+{{ notes_section.content | safe}} +Read More +

Links

+ {% endblock body %} diff --git a/templates/notes-page.html b/templates/notes-page.html new file mode 100644 index 0000000..cf4bfae --- /dev/null +++ b/templates/notes-page.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} {% block body %} +

Notes {{ page.title }}

+

{{ page.date }}

+{{ page.content | safe }} {% endblock body %} diff --git a/templates/notes.html b/templates/notes.html new file mode 100644 index 0000000..f49e822 --- /dev/null +++ b/templates/notes.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} {% block body %} +

{{ section.title }}

+ +{% endblock body %} -- cgit v1.2.3