diff options
-rw-r--r-- | wiki.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |