summaryrefslogtreecommitdiff
path: root/templates
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
parent58b34474c98244e19c554fad9461ea3989edcafa (diff)
index: replace static content with markdown instead of html
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html28
-rw-r--r--templates/notes.html8
2 files changed, 11 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 %}
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 %}