aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Ortlepp <post@ortlepp.eu>2020-02-29 15:25:35 +0100
committerThorsten Ortlepp <post@ortlepp.eu>2020-02-29 15:25:35 +0100
commitfb637c5145a818b292a8a5ddf76899c4667c3048 (patch)
treeacdf7a3ee3e67f0e574f0281872a87e74f335905
parent40f83654e4f92d927da0f1862329d7187e5ac498 (diff)
downloadstagit-fork-fb637c5145a818b292a8a5ddf76899c4667c3048.zip
Fixed path to resources
-rw-r--r--stagit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index 7ff036f..3c26252 100644
--- a/stagit.c
+++ b/stagit.c
@@ -352,13 +352,13 @@ writeheader(FILE *fp, const char *title)
if (description[0])
fputs(" - ", fp);
xmlencode(fp, description, strlen(description));
- fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
+ fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", "/web/");
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", relpath);
+ fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", "/web/");
fputs("</head>\n<body>\n<table><tr><td>", fp);
fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
- relpath, relpath);
+ relpath, "/web/");
fputs("</td><td><h1>", fp);
xmlencode(fp, strippedname, strlen(strippedname));
fputs("</h1><span class=\"desc\">", fp);