diff options
author | Nikolas <nikolas@boutalas.com> | 2024-10-28 12:38:54 +0200 |
---|---|---|
committer | Nikolas <nikolas@boutalas.com> | 2024-10-28 12:42:20 +0200 |
commit | f934df8bc8fd0c8d19436f1b51a61e1f3f6bd08e (patch) | |
tree | 30677619a682eb15b5d7117cd72244aefca9407a /templates | |
parent | a28cecd8e11672148809a5cf6dadc4d18f0f2324 (diff) |
index: add notes section
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 21 | ||||
-rw-r--r-- | templates/notes-page.html | 4 | ||||
-rw-r--r-- | templates/notes.html | 8 |
3 files changed, 22 insertions, 11 deletions
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 %} -<section> - <h1>Archive of Nikolas Boutalas</h1> - <p>Opinions are (hopefully) my own.</p> -</section> - -<section> - <h2>Links</h2> - <ul> - <li><a href="https://git.boutalas.com">Repositories</a></li> - </ul> -</section> +<h1>Archive</h1> +<p>Opinions are (hopefully) my own.</p> +{% set notes_section = get_section(path="notes/_index.md") %} +<h2>{{notes_section.title}}</h2> +{{ notes_section.content | safe}} +<a href="{{ notes_section.permalink | safe }}">Read More</a> +<h2>Links</h2> +<ul> + <li><a href="https://git.boutalas.com">Repositories</a></li> +</ul> {% 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 %} +<h1>Notes {{ page.title }}</h1> +<p>{{ page.date }}</p> +{{ 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 %} +<h1>{{ section.title }}</h1> +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">... {{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock body %} |