From: Shane Date: Sun, 11 Jan 2026 01:39:05 +0000 (+0000) Subject: wip better? X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=94cdbf8aba12200fde5b688e3da729168cd19d5f;p=nutratech%2Fvps-root.git wip better? --- diff --git a/etc/gitweb.conf b/etc/gitweb.conf index 5879fc9..310b9c3 100644 --- a/etc/gitweb.conf +++ b/etc/gitweb.conf @@ -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"); diff --git a/etc/nginx/conf.d/git-http.conf b/etc/nginx/conf.d/git-http.conf index d15d203..ef64d2b 100644 --- a/etc/nginx/conf.d/git-http.conf +++ b/etc/nginx/conf.d/git-http.conf @@ -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 index 0000000..6168f37 --- /dev/null +++ b/scripts/gitweb-simplefrontend/assets/custom.css @@ -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 index 0000000..d768023 Binary files /dev/null and b/scripts/gitweb-simplefrontend/assets/git-favicon.png differ