diff options
author | Nikolas <nikolas@boutalas.com> | 2024-11-16 18:58:12 +0000 |
---|---|---|
committer | Nikolas <nikolas@boutalas.com> | 2024-11-16 18:58:12 +0000 |
commit | 121e633a9bfd837088f34aec43b8b1b565dd5e9d (patch) | |
tree | 05bf231d293b52555f510b7a9295d288e590c2dc | |
parent | 58b34474c98244e19c554fad9461ea3989edcafa (diff) |
index: replace static content with markdown instead of html
-rw-r--r-- | content/_index.md | 20 | ||||
-rw-r--r-- | content/notes/_index.md | 4 | ||||
-rw-r--r-- | content/photos/_index.md | 2 | ||||
-rw-r--r-- | templates/index.html | 28 | ||||
-rw-r--r-- | templates/notes.html | 8 |
5 files changed, 32 insertions, 30 deletions
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 %} -<h1>Archive</h1> +{% extends "base.html" %} -{% set notes_section = get_section(path="notes/_index.md") %} -<h2>{{notes_section.title}}</h2> -{{ notes_section.content | safe}} -<ul> - {% for page in notes_section.pages %} - <li><a href="{{ page.permalink | safe }}">... {{ page.title }}</a> ({{ page.date}})</li> - {% endfor %} -</ul> - -{% set photos_section = get_section(path="photos/_index.md") %} -<h2>{{photos_section.title}}</h2> -{{ photos_section.content | safe}} -<a href="{{ photos_section.permalink | safe }}">Check it out</a> - -<h2>Links</h2> -<ul> - <li><a href="https://git.boutalas.com">Repositories</a></li> - <li><a href="https://dump.boutalas.com">File dump</a></li> -</ul> -<footer> - <hr /> - <p class="center"><small>Feedback or patch? <a href="mailto:nikolas@boutalas.com">Don't send me an email</a></small></p> -</footer> +{% 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 %} +<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 %} |