From c276f6601701efb30cd6aca42e30cdad17b365f9 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sun, 2 Jun 2024 18:44:17 +0100 Subject: [PATCH] Add tags to forum posts template --- internal/assets/static/main.css | 5 +++++ internal/assets/templates/forum-posts.html | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/internal/assets/static/main.css b/internal/assets/static/main.css index b80fa6b..62b4480 100644 --- a/internal/assets/static/main.css +++ b/internal/assets/static/main.css @@ -775,6 +775,10 @@ kbd:active { margin-top: 0.1rem; } +.forum-post-tags-container { + transform: translateY(-0.15rem); +} + .bookmarks-group { --bookmarks-group-color: var(--color-primary); } @@ -1367,6 +1371,7 @@ kbd:active { .min-width-0 { min-width: 0; } .max-width-100 { max-width: 100%; } .block { display: block; } +.inline-block { display: inline-block; } .overflow-hidden { overflow: hidden; } .relative { position: relative; } .flex { display: flex; } diff --git a/internal/assets/templates/forum-posts.html b/internal/assets/templates/forum-posts.html index 529cc25..a6fe24d 100644 --- a/internal/assets/templates/forum-posts.html +++ b/internal/assets/templates/forum-posts.html @@ -20,6 +20,15 @@ {{ end }}
{{ .Title }} + {{ if gt (len .Tags) 0 }} +
+ +
+ {{ end }}