#$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");
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;
--- /dev/null
+/* 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;
+}