commit dab15581785f095db9372047d88b6766c434771d
Author: tri <tri@thac.loan>
Date:   Tue Sep 30 20:06:16 2025 +0700

    italic repo description, also trim trailing \n

diff --git a/src/git.zig b/src/git.zig
index 331f39f..e422aa7 100644
--- a/src/git.zig
+++ b/src/git.zig
@@ -103,7 +103,7 @@ pub fn getDescription(arena: mem.Allocator, git_dir: fs.Dir) ![]const u8 {
         }
     };
     if (mem.startsWith(u8, description, "Unnamed repository;")) return "";
-    return description;
+    return mem.trimEnd(u8, description, "\n");
 }
 
 /// If found, return the exact readme filename.
diff --git a/src/main.zig b/src/main.zig
index 4a085b9..7366bb5 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -242,7 +242,6 @@ pub fn writeRepoPage(args: RepoArgs) !void {
     const arena = args.arena;
     const site_url = args.site_url;
     const repo_name = args.repo_name;
-    const description = args.description;
     const target_dir = args.target_dir;
     const in_repo_dir = args.in_repo_dir;
     const commits = args.commits;
@@ -275,7 +274,7 @@ pub fn writeRepoPage(args: RepoArgs) !void {
         \\        /<a href="/">repos</a>/<h1>{0s}</h1>/
         \\      </div>
         \\    </header>
-        \\    <p>{4s}</p>
+        \\    <p style="margin-top:0; font-style:italic;">{4s}</p>
         \\
         \\    <p>
         \\      clone: <code>git clone {2s}/{3s}</code><br>
@@ -291,7 +290,7 @@ pub fn writeRepoPage(args: RepoArgs) !void {
             repo_name
         else
             try std.fmt.bufPrint(&buf, "{s}/{s}", .{ repo_name, args.git_dir_path }),
-        try html.escapeAlloc(arena, description),
+        try html.escapeAlloc(arena, args.description),
         try git.repoSize(arena, args.git_dir),
     });