aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-01-19 14:23:39 -0500
committerBradley Taunt <bt@btxx.org>2024-01-19 14:23:39 -0500
commitb70c754ca161fe7e68ce0a682cc5b5bdfd29c3d7 (patch)
tree100453c888630935e309b7475382fbc4bede59d1
parente882e568f1cb033a4d2b560939846fb0f85527d0 (diff)
Fix title meta content
-rw-r--r--ssgit.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/ssgit.c b/ssgit.c
index 4eb628a..6af4d88 100644
--- a/ssgit.c
+++ b/ssgit.c
@@ -15,9 +15,19 @@ struct Config {
char *description;
};
-void header(FILE *f, const char *repo_name, const char *desc) {
- fprintf(f, "<html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><title>%s - %s</title><style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:auto;}pre{overflow:auto;}</style></head><body><header><nav><a href='/''>git.btxx.org</a></header>\n", repo_name, desc);
-}
+const char header[] =
+"<html lang='en'>\n"
+" <head>\n"
+" <meta charset='UTF-8'>\n"
+" <meta name='viewport' content='width=device-width, initial-scale=1.0'>\n"
+" <meta name='author' content='Bradley Taunt' />\n"
+" <title>git.btxx.org</title>\n"
+" <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:auto;}pre{overflow:auto;}</style>\n"
+" </head>\n"
+" <body>\n"
+" <header>\n"
+" <a id='title' href='/'>git.btxx.org</a></span>\n"
+" </header>\n";
const char footer[] =
" <footer><hr>\n"