summaryrefslogtreecommitdiff
path: root/clams-server/src/main/resources/templates/articles.html
diff options
context:
space:
mode:
authorElias Haugsbakk <[email protected]>2026-07-21 22:54:08 +0200
committerElias Haugsbakk <[email protected]>2026-07-21 22:59:57 +0200
commite36f49c7d90bed4b8c2e3edb1225ca1b9720da4d (patch)
tree04e2752f5bcd70054ba007a7e58d85dc9d8e62c5 /clams-server/src/main/resources/templates/articles.html
parentae5f5b3c0b3c4af6b842f3ccd95bfe0607ac0610 (diff)
swap blog and post for article
Diffstat (limited to 'clams-server/src/main/resources/templates/articles.html')
-rw-r--r--clams-server/src/main/resources/templates/articles.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/clams-server/src/main/resources/templates/articles.html b/clams-server/src/main/resources/templates/articles.html
new file mode 100644
index 0000000..905ed52
--- /dev/null
+++ b/clams-server/src/main/resources/templates/articles.html
@@ -0,0 +1,31 @@
+{% extends "templates/layout.html" %}
+
+{% block content %}
+<main class="main-container">
+ <a href="/" class="back-link-top">&larr; back</a>
+ <header>
+ <h1>My articles</h1>
+ <p class="intro-text">A collection of my writings and thoughts.</p>
+
+ <form action="/articles" method="GET" class="search-form">
+ <input type="text" name="search" value="{{ search_value }}" placeholder="Search articles..."
+ aria-label="Search articles">
+ <button type="submit">Search</button>
+ </form>
+ </header>
+
+ <section id="all" class="articles-section">
+ <h2>All Articles</h2>
+ {% for group in articles_by_year %}
+ <details class="year-accordion" {% if loop.first %}open{% endif %}>
+ <summary class="year-toggle">{{ group.key }}</summary>
+ <ul class="article-list">
+ {% for article in group.value %}
+ <li><a href="/articles/{{ article.slug }}">{{ article.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </details>
+ {% endfor %}
+ </section>
+</main>
+{% endblock %}