From 8a4935f7ba29cc39781c0d3169e81d6af3bd5761 Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Wed, 22 Jul 2026 00:23:50 +0200 Subject: refine article styling --- .../src/main/resources/templates/article.html | 2 -- .../main/resources/templates/articles-search.html | 41 ++++++++++++++++++++++ .../src/main/resources/templates/blog-search.html | 41 ---------------------- 3 files changed, 41 insertions(+), 43 deletions(-) create mode 100644 clams-server/src/main/resources/templates/articles-search.html delete mode 100644 clams-server/src/main/resources/templates/blog-search.html (limited to 'clams-server/src/main/resources/templates') diff --git a/clams-server/src/main/resources/templates/article.html b/clams-server/src/main/resources/templates/article.html index 7d0c23f..98b135b 100644 --- a/clams-server/src/main/resources/templates/article.html +++ b/clams-server/src/main/resources/templates/article.html @@ -8,8 +8,6 @@ {{ author }} -

{{ title }}

-
{{ content | raw }}
diff --git a/clams-server/src/main/resources/templates/articles-search.html b/clams-server/src/main/resources/templates/articles-search.html new file mode 100644 index 0000000..dd435e5 --- /dev/null +++ b/clams-server/src/main/resources/templates/articles-search.html @@ -0,0 +1,41 @@ +{% extends "templates/layout.html" %} + +{% block content %} +
+ ← back +
+

My articles

+

For search: "{{ search_term }}" -- Found {{ results_count }} matching articles

+ +
+ + +
+
+ +
+ {% if results is empty %} +
+ {% if search_term is empty %} +

Please enter a search term to search the articles. Or go back to all articles.

+ {% else %} +

Found no articles matching "{{ search_term }}".
+ Go back to all articles.

+ {% endif %} +
+ {% else %} +
    + {% for article in results %} +
  • + {{ article.formattedDate }} + {{ article.title }} + {% if article.summary is not empty %} + -- {{ article.summary }} + {% endif %} +
  • + {% endfor %} +
+ {% endif %} +
+
+{% endblock %} 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 %} -
- ← back -
-

My articles

-

For search: "{{ search_term }}" -- Found {{ results_count }} matching articles

- -
- - -
-
- -
- {% if results is empty %} -
- {% if search_term is empty %} -

Please enter a search term to search the articles. Or go back to all articles.

- {% else %} -

Found no articles matching "{{ search_term }}".
- Go back to all articles.

- {% endif %} -
- {% else %} -
    - {% for article in results %} -
  • - {{ article.formattedDate }} - {{ article.title }} - {% if article.summary is not empty %} - -- {{ article.summary }} - {% endif %} -
  • - {% endfor %} -
- {% endif %} -
-
-{% endblock %} -- cgit v1.2.3