From 121e633a9bfd837088f34aec43b8b1b565dd5e9d Mon Sep 17 00:00:00 2001 From: Nikolas Date: Sat, 16 Nov 2024 18:58:12 +0000 Subject: index: replace static content with markdown instead of html --- content/_index.md | 20 ++++++++++++++++++++ content/notes/_index.md | 4 +--- content/photos/_index.md | 2 -- templates/index.html | 28 +++------------------------- templates/notes.html | 8 ++++++++ 5 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 content/_index.md create mode 100644 templates/notes.html diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..d21e987 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,20 @@ ++++ +title = "Boutalas" ++++ + +# Notes + +Software (probably) related thoughts. Will try to keep them updated... + +[Read more](notes) + +# Photos + +Poor man's social media account (without the social lol). + +[Check them out](photos) + +# Links + +- [Repositories](https://git.boutalas.com) +- [File dump](https://dump.boutalas.com) diff --git a/content/notes/_index.md b/content/notes/_index.md index dc17d07..0e6813c 100644 --- a/content/notes/_index.md +++ b/content/notes/_index.md @@ -2,7 +2,5 @@ title="Notes" sort_by = "date" page_template = "notes-page.html" -render=false +template = "notes.html" +++ - -Software (probably) related thoughts. Will try to keep them updated... diff --git a/content/photos/_index.md b/content/photos/_index.md index 2c829e9..2dd8cb9 100644 --- a/content/photos/_index.md +++ b/content/photos/_index.md @@ -5,5 +5,3 @@ template = "photos.html" page_template = "photos-page.html" paginate_by = 2 +++ - -Poor man's social media account (without the social lol). diff --git a/templates/index.html b/templates/index.html index a740ef7..f16c3f8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,27 +1,5 @@ -{% extends "base.html" %} {% block body %} -

Archive

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

{{notes_section.title}}

-{{ notes_section.content | safe}} - - -{% set photos_section = get_section(path="photos/_index.md") %} -

{{photos_section.title}}

-{{ photos_section.content | safe}} -Check it out - -

Links

- - +{% block body %} +{{ section.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