aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wiki.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wiki.c b/wiki.c
index f06f468..04d1fd9 100644
--- a/wiki.c
+++ b/wiki.c
@@ -36,8 +36,10 @@ void head(char *page, char *link, char *what) {
printf("<!doctype html>\n");
printf("<title>%s ยท %s</title>\n", title, page);
printf("<link rel='stylesheet' href='%s/wiki.css'>\n", base);
- if(link && what)
+ if(link && what && !strcmp(what, "rediger"))
printf("<h1><a data-text='%s' href='%s' >%s</a></h1>\n", what, link, page);
+ else if(link && what)
+ printf("<h1><a data-text='%s' href='%s/%s' >%s</a></h1>\n", what, base, link, page);
else
printf("<h1>%s</h1>\n", page);
}