wip better?
authorShane <chown_tee@proton.me>
Sun, 11 Jan 2026 01:39:05 +0000 (01:39 +0000)
committerShane <chown_tee@proton.me>
Sun, 11 Jan 2026 01:39:05 +0000 (01:39 +0000)
etc/gitweb.conf
etc/nginx/conf.d/git-http.conf
scripts/gitweb-simplefrontend/assets/custom.css [new file with mode: 0644]
scripts/gitweb-simplefrontend/assets/git-favicon.png [new file with mode: 0644]

index 5879fc9f1ac3868092156f9207730eb1c7966054..310b9c3695011a5b112db1bc577f672ab7b5d940 100644 (file)
@@ -22,16 +22,16 @@ $home_text = "indextext.html"; # [CUSTOM]
 #$projects_list = $projectroot;
 
 # stylesheet to use
-@stylesheets = ("/static/gitweb.css"); # [CUSTOM]
+@stylesheets = ("/static/gitweb.css", "/assets/custom.css"); # [CUSTOM]
 
 # javascript code for gitweb
 $javascript = "static/gitweb.js"; # [CUSTOM]
 
 # logo to use
-$logo = "/static/git-logo.png"; # [CUSTOM]
+$logo = "/assets/git-favicon.png"; # [CUSTOM]
 
 # the 'favicon'
-$favicon = "/static/git-favicon.png"; # [CUSTOM]
+$favicon = "/assets/git-favicon.png"; # [CUSTOM]
 
 # git-diff-tree(1) options to use for generated patches
 #@diff_opts = ("-M");
index d15d203e7bcba62805276145e27b04b63a42e42c..ef64d2b421edafa457ded21a76dde2d7f5dd661f 100644 (file)
@@ -20,6 +20,11 @@ server {
         try_files $uri @gitweb;
     }
 
+    # Custom Assets (Favicon, Logo, etc.)
+    location /assets/ {
+        alias /srv/git/assets/;
+    }
+
     location @gitweb {
         include /etc/nginx/fastcgi_params;
         fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
diff --git a/scripts/gitweb-simplefrontend/assets/custom.css b/scripts/gitweb-simplefrontend/assets/custom.css
new file mode 100644 (file)
index 0000000..6168f37
--- /dev/null
@@ -0,0 +1,18 @@
+/* Hide Description and Owner Columns */
+td.description, th.description,
+td.owner, th.owner {
+    display: none !important;
+}
+
+/* Optional: Make the project list look a bit nicer */
+table.project_list {
+    width: 100%;
+}
+
+/* Fix Logo Aspect Ratio (Gitweb defaults to 72x27, squashing square icons) */
+img.logo {
+    width: auto !important;
+    height: 32px !important;
+    margin-bottom: 4px !important; /* Raise it slightly */
+    vertical-align: middle !important;
+}
diff --git a/scripts/gitweb-simplefrontend/assets/git-favicon.png b/scripts/gitweb-simplefrontend/assets/git-favicon.png
new file mode 100644 (file)
index 0000000..d768023
Binary files /dev/null and b/scripts/gitweb-simplefrontend/assets/git-favicon.png differ