summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolas <nikolas@boutalas.com>2024-10-28 19:09:00 +0200
committerNikolas <nikolas@boutalas.com>2024-10-28 19:09:00 +0200
commit7bc19d04271f7b073580f4eb04fba6e672869542 (patch)
tree2fc5ed0cf4289b5539debd85f3dfd19c517d7bc2
parent2bcbe122f3b7502baed3e5eb801e3d2323b1ac48 (diff)
notes: drop section page
-rw-r--r--content/notes/_index.md2
-rw-r--r--templates/index.html6
-rw-r--r--templates/notes.html8
3 files changed, 6 insertions, 10 deletions
diff --git a/content/notes/_index.md b/content/notes/_index.md
index 9b90398..e9428fc 100644
--- a/content/notes/_index.md
+++ b/content/notes/_index.md
@@ -1,8 +1,8 @@
+++
title="Notes"
sort_by = "date"
-template = "notes.html"
page_template = "notes-page.html"
+render=false
+++
These are my "living" notes. They can hold opinions, things to remember, ideas to express, and more.
diff --git a/templates/index.html b/templates/index.html
index ea3c2e2..c9d0cea 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -5,7 +5,11 @@
{% 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>
+<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>
diff --git a/templates/notes.html b/templates/notes.html
deleted file mode 100644
index f49e822..0000000
--- a/templates/notes.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% 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 %}