summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorNikolas <nikolas@boutalas.com>2024-11-16 18:58:12 +0000
committerNikolas <nikolas@boutalas.com>2024-11-16 18:58:12 +0000
commit121e633a9bfd837088f34aec43b8b1b565dd5e9d (patch)
tree05bf231d293b52555f510b7a9295d288e590c2dc /templates/index.html
parent58b34474c98244e19c554fad9461ea3989edcafa (diff)
index: replace static content with markdown instead of html
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html28
1 files changed, 3 insertions, 25 deletions
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 %}