summaryrefslogtreecommitdiff
path: root/views/partials
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-08-16 11:48:09 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-08-16 11:48:09 +0700
commitb1a1651ad7e7faf7a87aca8fea1cdad156f3606e (patch)
treec6c635c6667505ac407c1c38c4485fd0f1e22d08 /views/partials
parent27526553e9f1c7d97a4a035591cd144863a1f08b (diff)
downloadweb-b1a1651ad7e7faf7a87aca8fea1cdad156f3606e.tar.gz
web-b1a1651ad7e7faf7a87aca8fea1cdad156f3606e.zip
feat: clickable tags (to search explicitly one)v0.5.9
feat: show published time in client's timezone feat: make 'ram' theme default fix: show tags header in catalogue
Diffstat (limited to 'views/partials')
-rw-r--r--views/partials/catalogue-blog-card-tags.html1
-rw-r--r--views/partials/catalogue-blog-cards.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/views/partials/catalogue-blog-card-tags.html b/views/partials/catalogue-blog-card-tags.html
new file mode 100644
index 0000000..374314a
--- /dev/null
+++ b/views/partials/catalogue-blog-card-tags.html
@@ -0,0 +1 @@
+{{ range $i, $tag := .Tags }}{{ if ne $i 0 }}, {{ end }}<a hx-trigger="click" hx-get="/api/v1/blog-search" hx-target=".blog-cards" hx-swap="innerHTML" hx-trigger="load" hx-include=".tags-list" class="hx-anchor cursor-pointer" onclick="pickedTagSetHrefParams({{ $tag }})">{{ $tag }}</a>{{ end }} \ No newline at end of file
diff --git a/views/partials/catalogue-blog-cards.html b/views/partials/catalogue-blog-cards.html
index a9e4010..406ef9b 100644
--- a/views/partials/catalogue-blog-cards.html
+++ b/views/partials/catalogue-blog-cards.html
@@ -12,7 +12,7 @@
<p class="flex-3/12 grow-0 text-[1vmax] italic text-secondary text-right">{{ .PublishedTime }}</p>
</div>
<p class="text-[1vmax] text-main-dark">{{ .ShortDescription }}</p>
- <p class="text-[1vmax] text-secondary">{{ .L.TagsLabel }} {{ .Tags }}</p>
+ <p class="text-[1vmax] text-secondary">{{ $.L.TagsLabel }} {{ template "catalogue-blog-card-tags.html" . }}</p>
</div>
</div>
{{- end }} \ No newline at end of file