diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2026-07-31 23:12:10 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2026-07-31 23:12:10 +0200 |
| commit | d45fda274030bf32a62f67cb224931a60bd3b382 (patch) | |
| tree | 1c2d5d37ee4f36dced22cad07d128d3be0d7251b /modules | |
| parent | 3c9ba1c4773779692e961f99658d94d3fcccdb60 (diff) | |
Fixed the bad theming and the width
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/cgit.css | 10 | ||||
| -rw-r--r-- | modules/cgit.nix | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/modules/cgit.css b/modules/cgit.css index 97acc37..c7c030a 100644 --- a/modules/cgit.css +++ b/modules/cgit.css @@ -27,9 +27,15 @@ } } +html, body { + background: var(--bg-color); + margin: 0; + min-height: 100%; +} + div#cgit { - padding: 0em; - margin: 0em; + max-width: 1400px; + margin: 0em auto; font-family: "CMU Serif", system-ui; font-size: 10pt; color: var(--text-color); diff --git a/modules/cgit.nix b/modules/cgit.nix index 28b3531..8c411a7 100644 --- a/modules/cgit.nix +++ b/modules/cgit.nix @@ -77,6 +77,15 @@ # Syntax highlighting source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh"; + + # Which file about-filter renders on a repo's summary page - tried in + # order, first match wins (a list here becomes repeated `readme=` + # lines, cgitrc's own convention for this setting). + readme = [ + ":README.md" + ":readme.md" + ":README" + ]; }; }; |
