aboutsummaryrefslogtreecommitdiff
path: root/src/blog/2022-11-23-git-host/git-host.md
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-08-30 18:35:23 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-08-30 18:35:23 +0200
commit5e3b4b6c21d33b28e60ce976479339f72d544a6c (patch)
tree0e5a101d4944e7dd5a99606344b6a6807a9a5606 /src/blog/2022-11-23-git-host/git-host.md
parentd3f0841cfdd229ff16b8a230117737a435fc7a56 (diff)
downloadsebastiano.tronto.net-5e3b4b6c21d33b28e60ce976479339f72d544a6c.tar.gz
sebastiano.tronto.net-5e3b4b6c21d33b28e60ce976479339f72d544a6c.zip
Switch from stagit to cgit
Diffstat (limited to 'src/blog/2022-11-23-git-host/git-host.md')
-rw-r--r--src/blog/2022-11-23-git-host/git-host.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/blog/2022-11-23-git-host/git-host.md b/src/blog/2022-11-23-git-host/git-host.md
index cc9fc27..9976b91 100644
--- a/src/blog/2022-11-23-git-host/git-host.md
+++ b/src/blog/2022-11-23-git-host/git-host.md
@@ -1,5 +1,11 @@
1# Self-hosted git pages with stagit (featuring ed, the standard editor) 1# Self-hosted git pages with stagit (featuring ed, the standard editor)
2 2
3**Update 2026-08-30: Since August 2026, I am no longer using stagit to
4host my git pages. Instead, I use [cgit](https://git.zx2c4.com/cgit/about).
5I have updated all the links in this page to point to a frozen copy of
6my stagit-based git page before the switch. If you want to visit my new
7git page, go to [git.tronto.net](https://git.tronto.net)**
8
3This is a follow-up to my earlier blog entry 9This is a follow-up to my earlier blog entry
4[How I update my website](../2022-08-14-website). 10[How I update my website](../2022-08-14-website).
5 11
@@ -14,9 +20,9 @@ via web pages, on your personal server? In this post I am going to show
14you how I do it, in the usual minimalist and 20you how I do it, in the usual minimalist and
15not-using-what-I-do-not-understand style. 21not-using-what-I-do-not-understand style.
16 22
17You can see the final result on my [git pages](https://git.tronto.net). 23You can see the final result on my [git pages](https://stagit.tronto.net).
18The scripts and other files I use to set this up are accessible 24The scripts and other files I use to set this up are accessible
19[here](https://git.tronto.net/git-hooks). 25[here](https://stagit.tronto.net/git-hooks).
20 26
21## Hosting git repositories on your own server 27## Hosting git repositories on your own server
22 28
@@ -54,7 +60,7 @@ a bunch of html files that you can simply move to your www hosting directory.
54After generating the pages you can personalize them by copying your logo, 60After generating the pages you can personalize them by copying your logo,
55[favicon](https://en.wikipedia.org/wiki/Favicon) or CSS style sheet. You can 61[favicon](https://en.wikipedia.org/wiki/Favicon) or CSS style sheet. You can
56use `stagit-index` to generate 62use `stagit-index` to generate
57[an index page for your repositories](https://git.tronto.net/). Since everything 63[an index page for your repositories](https://stagit.tronto.net/). Since everything
58consists of html files, you can simply edit them to personalize your git pages 64consists of html files, you can simply edit them to personalize your git pages
59even further - and below you'll see some examples. 65even further - and below you'll see some examples.
60 66
@@ -155,8 +161,8 @@ add or change:
155* I would like to have a download button so that people who don't use git 161* I would like to have a download button so that people who don't use git
156 can still download my files. This makes sense especially for those 162 can still download my files. This makes sense especially for those
157 repos that are mostly documents, such as my 163 repos that are mostly documents, such as my
158 [lecture notes](https://git.tronto.net/mathsoftware) or my 164 [lecture notes](https://stagit.tronto.net/mathsoftware) or my
159 [FMC tutorial](https://git.tronto.net/fmctutorial). 165 [FMC tutorial](https://stagit.tronto.net/fmctutorial).
160* I would like to convert README.md files to html. 166* I would like to convert README.md files to html.
161 167
162If I were calling stagit by hand after each `git push`, I 168If I were calling stagit by hand after each `git push`, I
@@ -280,7 +286,7 @@ stagit-index /home/git/*.git | sed 's|/log\.html||g' > "$basedir/index.html"
280And that's it. Well, I also copy the style files and add a bottom bar, 286And that's it. Well, I also copy the style files and add a bottom bar,
281and change the title from a `<span class="desc">` to an `<h1>` element, 287and change the title from a `<span class="desc">` to an `<h1>` element,
282again using `ed`. If you want to see the details you can check them out 288again using `ed`. If you want to see the details you can check them out
283[here](https://git.tronto.net/git-hooks/file/post-receive-stagit.html). 289[here](https://stagit.tronto.net/git-hooks/file/post-receive-stagit.html).
284 290
285## Conclusions 291## Conclusions
286 292

Generated with cgit - Back to sebastiano.tronto.net