From 3289c2f3bfb3228d181f8a3ba09b9d812add4dcb Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 30 Nov 2023 00:26:32 +0100 Subject: Tweak cgit overview page --- tw/system/lud.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tw/system/lud.scm b/tw/system/lud.scm index 1a2c5d83..aee35d4f 100644 --- a/tw/system/lud.scm +++ b/tw/system/lud.scm @@ -97,14 +97,21 @@ (root-title "Timo Wilken's Git repositories") (root-desc "Projects written by me, contributed to by me, or \ that I just want to host somewhere.") - ;; (root-readme "") ; TODO + ;; (root-readme "/srv/git/README.md") ; TODO + ;; (readme "README.md") ; TODO + ;; https://wiki.archlinux.org/title/Cgit#Syntax_highlighting + ;; TODO: install python-markdown, highlight/python-pygments + ;; TODO: see /gnu/store/...-cgit-1.2.3/lib/cgit/filters/ + ;; (about-filter "/lib/cgit/filters/about-formatting.sh") (repository-directory "/srv/git") (strict-export "git-daemon-export-ok") ; require presence of this file to show repo (remove-suffix? #t) ; remove trailing .git in name and URL (clone-prefix '("https://git.twilken.net" "ssh://git@git.twilken.net:22022/~")) (enable-http-clone? #t) ; avoid having to run git-daemon as well - (noplainemail? #t) ; hide email addresses in web interface + (noplainemail? #t) ; hide email addresses in web interface + (enable-index-owner? #f) ; everything is owned by the "git" user + (enable-index-links? #t) ; add summary/commit/tree links in index (nginx (list (nginx-server-configuration (inherit %cgit-configuration-nginx) -- cgit v1.2.3