diff options
| author | Elias Haugsbakk <[email protected]> | 2026-07-22 00:48:08 +0200 |
|---|---|---|
| committer | Elias Haugsbakk <[email protected]> | 2026-07-22 01:49:58 +0200 |
| commit | 8d86458282efae6c3fc26ab8fb4bd61d1a4e01e3 (patch) | |
| tree | 1efd9709886179b8469a5031d75dba9c35e37588 /clams-server/src/main/resources/templates/articles.html | |
| parent | 8a4935f7ba29cc39781c0d3169e81d6af3bd5761 (diff) | |
refine articles and article search styling
Diffstat (limited to 'clams-server/src/main/resources/templates/articles.html')
| -rw-r--r-- | clams-server/src/main/resources/templates/articles.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clams-server/src/main/resources/templates/articles.html b/clams-server/src/main/resources/templates/articles.html index 905ed52..5feddae 100644 --- a/clams-server/src/main/resources/templates/articles.html +++ b/clams-server/src/main/resources/templates/articles.html @@ -10,7 +10,7 @@ <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> + <button type="submit" class="pill-button">Search</button> </form> </header> @@ -21,7 +21,14 @@ <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> + <li class="article-list-item"> + <span class="article-date">{{ article.formattedDate }}</span> + <a href="/articles/{{ article.slug }}">{{ article.title }}</a> + {% if article.summary is not empty %} + <br> + <span class="search-result-summary">-- {{ article.summary }}</span> + {% endif %} + </li> {% endfor %} </ul> </details> |
