summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorOscar Benedito <oscar@oscarbenedito.com>2020-06-22 22:07:40 +0200
committerOscar Benedito <oscar@oscarbenedito.com>2020-07-10 14:32:59 +0200
commit65a2b9768d412317adabc0d6e99894842b7738ba (patch)
tree8ab870cf0048f600c3b63684693977a29506e5e0 /stagit.c
parent659b096942bafffa8b3da42df3d4108d6547296c (diff)
Unify assets
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index 6891bd4..59d30ee 100644
--- a/stagit.c
+++ b/stagit.c
@@ -352,12 +352,12 @@ 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.ico\" />\n", relpath);
+ fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"../%sfavicon.ico\" />\n", relpath);
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", relpath);
fputs("</head>\n<body>\n<table><tr><td>", fp);
- fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
+ fprintf(fp, "<a href=\"../%s\"><img src=\"../%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
relpath, relpath);
fputs("</td><td><h1>", fp);
xmlencode(fp, strippedname, strlen(strippedname));