commit 245296de1a76e46d65ee8ba10ce155c0c4aa56c8
parent f5cad2e5b0f3511851f550c508e1e896252a4550
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Wed, 2 Sep 2026 18:14:41 -0300
Add reference links on header of open repo
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -540,10 +540,14 @@ writeheader(FILE *fp, const char *title)
xmlencode(fp, name, strlen(name));
fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
- fputs("</head>\n<body>\n<table id=\"repo-header-table\"><tr><td id=\"repo-logo\">", fp);
+ fputs("</head>\n<body>\n", fp);
+ fputs("<div id=\"webpage-header-link\">\n", fp);
+ fputs("<a href=\"https://kloeckner.com.ar/\">https://kloeckner.com.ar\n", fp);
+ fputs("</a></div>\n<body>\n", fp);
+ fputs("<table id=\"repo-header-table\"><tr><td id=\"repo-logo\">", fp);
fprintf(fp, "<a href=\"https://git.kloeckner.com.ar\"><img src=\"%slogo.png\" alt=\"\" width=\"64\" height=\"64\" /></a>",
relpath, relpath);
- fputs("</td><td id=\"repo-header\"><h1 id=\"repo-name\">", fp);
+ fputs("</td><td id=\"repo-header\"><h1 id=\"repo-name\"><a href=\"/\">repos/</a>", fp);
xmlencode(fp, strippedname, strlen(strippedname));
fputs("</h1><span id=\"repo-desc\">", fp);
xmlencode(fp, description, strlen(description));