logo

stagit

STAtic GIT web view generator (in C)
commit: 05d3fadaf9324a62c132c1514d1b456998e2dab0
parent: 189b1ad74de4096a312d1d498bbff5ab1bcf0655
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 21 Mar 2019 11:32:07 +0100

stagit.c: Move atom link next to Log for better discoverability

Diffstat:

Mstagit.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -355,8 +355,6 @@ writeheader(FILE *fp, const char *title) if(strlen(faviconurl) > 0) { fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%s\" />\n", faviconurl); } - fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n", - name, relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", assetpath); fputs("</head>\n<body>\n<header>", fp); fprintf(fp, "<a href=\"..\"><img src=\"%slogo.png\" alt=\"logo\" width=\"32\" height=\"32\" /></a>", @@ -375,6 +373,8 @@ writeheader(FILE *fp, const char *title) } fputs("</header><nav>\n", fp); fprintf(fp, " <a rel=\"version-history\" href=\"%slog.html\">Log</a>", relpath); + fprintf(fp, " (<a rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\">atom</a>)", + name, relpath); fprintf(fp, " <a rel=\"index\" href=\"%sfiles.html\">Files</a>", relpath); fprintf(fp, " <a href=\"%srefs.html\">Refs</a>", relpath); if (submodules)