From 998896ad86c653e3b1fa6845f9d2ce8139779004 Mon Sep 17 00:00:00 2001 From: partisan Date: Tue, 19 Nov 2024 12:14:11 +0100 Subject: [PATCH] I LOVE HTML --- templates/images.html | 29 +++++++++++++++++------------ templates/images_only.html | 25 ++++++++++++++++--------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/templates/images.html b/templates/images.html index e27f839..04eadf3 100755 --- a/templates/images.html +++ b/templates/images.html @@ -8,6 +8,13 @@ {{ end }} {{ .Query }} - {{ translate "site_name" }} + @@ -185,16 +192,14 @@ -
- {{ $result.Title }} -
+ {{ $result.Title }} {{ else }} {{ $result.Title }} @@ -216,10 +221,10 @@ diff --git a/templates/images_only.html b/templates/images_only.html index 765045b..e51dbe6 100644 --- a/templates/images_only.html +++ b/templates/images_only.html @@ -1,21 +1,28 @@ {{ range $index, $result := .Results }}
- + + {{ $result.Title }} + + + + {{ $result.Title }} + alt="{{ $result.Title }}" + class="clickable placeholder-img" + /> + {{ else }} + + {{ $result.Title }} + {{ end }}
{{ $result.Width }} × {{ $result.Height }}
{{ $result.Title }} {{ translate "source" }}
-{{ end }} \ No newline at end of file +{{ end }}