summaryrefslogtreecommitdiff
path: root/clams-server/src/main/resources/templates/blog-search.html
diff options
context:
space:
mode:
authorElias Haugsbakk <[email protected]>2026-07-22 00:23:50 +0200
committerElias Haugsbakk <[email protected]>2026-07-22 00:39:58 +0200
commit8a4935f7ba29cc39781c0d3169e81d6af3bd5761 (patch)
tree8a18c9edc0c7cf0bb68dba687502ecd2269230b3 /clams-server/src/main/resources/templates/blog-search.html
parenta56312d0f1e46b0e52667549dbb3437d70ea589f (diff)
refine article styling
Diffstat (limited to 'clams-server/src/main/resources/templates/blog-search.html')
-rw-r--r--clams-server/src/main/resources/templates/blog-search.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/clams-server/src/main/resources/templates/blog-search.html b/clams-server/src/main/resources/templates/blog-search.html
deleted file mode 100644
index dd435e5..0000000
--- a/clams-server/src/main/resources/templates/blog-search.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends "templates/layout.html" %}
-
-{% block content %}
-<main class="main-container">
- <a href="/articles" class="back-link-top">&larr; back</a>
- <header>
- <h1>My articles</h1>
- <p class="intro-text">For search: "<strong>{{ search_term }}</strong>" -- Found {{ results_count }} matching articles</p>
-
- <form action="/articles" method="GET" class="search-form">
- <input type="text" name="search" value="{{ search_term }}" placeholder="Search articles..." aria-label="Search articles">
- <button type="submit">Search</button>
- </form>
- </header>
-
- <div class="search-results-container">
- {% if results is empty %}
- <div class="no-results">
- {% if search_term is empty %}
- <p>Please enter a search term to search the articles. Or <a href="/articles">go back to all articles</a>.</p>
- {% else %}
- <p>Found no articles matching <strong>"{{ search_term }}"</strong>. <br>
- <a href="/articles">Go back to all articles</a>.</p>
- {% endif %}
- </div>
- {% else %}
- <ul class="search-results-list">
- {% for article in results %}
- <li class="search-result-item">
- <span class="search-result-date">{{ article.formattedDate }}</span>
- <a href="/articles/{{ article.slug }}">{{ article.title }}</a>
- {% if article.summary is not empty %}
- <span class="search-result-summary">-- {{ article.summary }}</span>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- {% endif %}
- </div>
-</main>
-{% endblock %}