Surround each tag entry in a div. master
authorNot Zed <notzed@gmail.com>
Wed, 11 Dec 2019 09:33:48 +0000 (20:03 +1030)
committerNot Zed <notzed@gmail.com>
Wed, 11 Dec 2019 09:33:48 +0000 (20:03 +1030)
blog.c

diff --git a/blog.c b/blog.c
index f38d3af..6a6ad40 100644 (file)
--- a/blog.c
+++ b/blog.c
@@ -275,9 +275,11 @@ static void print_tags(void) {
                send("<div class='tag-menu'><h2>Tags</h2>");
 
                for (int i=0;i<n;i++) {
-                       sendf("<a href='" TAG_SCRIPT "/");
+                       if (i > 0)
+                               send(" ");
+                       sendf("<div class='tag-item'><a href='" TAG_SCRIPT "/");
                        print_url(list[i].tag);
-                       sendf("'>%s</a> (%d)<br>", list[i].tag, list[i].postid_size);
+                       sendf("'>%s</a> (%d)</div>", list[i].tag, list[i].postid_size);
                }
        
                send("</div>\n");