rj1
about | log | files | refs | license
commit 1c1c99c06ed16eb499c645dabcc0f1390f76d42d
parent e11368e3aa71817d58c07932187e81bd0a4ba5ff
author: rj1 <[email protected]>
date:   Tue,  6 Dec 2022 16:29:14 -0600

updated header // footer

Diffstat:
Mstagit-index.c | 12++++++++----
Mstagit.c | 10++++++----
2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -89,7 +89,7 @@ writeheader(FILE *fp) fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n" "<link rel=\"icon\" href=\"/favicon.svg\">\n", relpath); fputs("</head>\n<body id=\"home\">\n<div class=\"content\">\n<header>\n" - "<div class=\"main\">\n<a href=\"/\">rj1</a>\n</div>\n<nav>\n" + "<div class=\"main\">\n<a href=\"/\"><img src=\"/img/rj1.svg\" alt=\"rj1\" width=\"50\"></a>\n</div>\n<nav>\n" "<a href=\"/\">home</a>\n<a href=\"/notes\">notes</a>\n<a href=\"/repos\">repos</a>\n<a href=\"/notes/index.xml\">rss</a>\n" "</nav>\n</header>\n<h1>", fp); xmlencode(fp, description, strlen(description)); @@ -102,11 +102,15 @@ writeheader(FILE *fp) void writefooter(FILE *fp) { fputs("</tbody>\n</table>\n" - "<footer>\n<hr>\n<div class=\"meta\">\n" - "「mail: <a href=\"mailto:[email protected]\">[email protected]</a>」 「pgp: <a href=\"/gpg.txt\">F0:42:A0:B6:CB:41:FD:A2</a>」</div>\n" - "</footer>\n</div>\n</div>\n</body>\n</html>\n", fp); + "<footer>\n<hr>\n<div class=\"meta\">\n" + "「mail: <a href=\"mailto:[email protected]\">[email protected]</a>」 " + "「irc: <a href=\"ircs:\/\/internetrelaychat.net:6697\">[email protected]</a>」 " + "「gh: <a href=\"https://github.com/rj1\">rj1</a>」 " + "「pgp: <a href=\"/gpg.txt\">F0:42:A0:B6:CB:41:FD:A2</a>」</div>" + "</div>\n</footer>\n</div>\n</body>\n</html>\n", fp); } + int writelog(FILE *fp) { git_commit *commit = NULL; diff --git a/stagit.c b/stagit.c @@ -521,7 +521,7 @@ writeheader(FILE *fp, const char *title) fputs("</title>\n", fp); // fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"../%sstyle.css\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\">\n<link rel=\"icon\" href=\"/favicon.svg\">\n", relpath); - fputs("</head>\n<body>\n<div class=\"content\">\n<header>\n<div class=\"main\">\n<a href=\"/\">rj1</a>\n</div>" + fputs("</head>\n<body>\n<div class=\"content\">\n<header>\n<div class=\"main\">\n<a href=\"/\"><img src=\"/img/rj1.svg\" alt=\"rj1\" width=\"50\"></a>\n</div>" "<nav>\n<a href=\"/\">home</a> <a href=\"/notes\">notes</a> <a href=\"/repos\">repos</a>\n<a href=\"/notes/index.xml\">rss</a>\n</nav>\n</header>\n<div id=\"head\">", fp); fputs("<div class=\"title\"><h1 class=\"title\">", fp); @@ -551,11 +551,13 @@ writeheader(FILE *fp, const char *title) relpath, contribute); } - void -writefooter(FILE *fp) +void writefooter(FILE *fp) { fputs("<footer>\n<hr>\n<div class=\"meta\">\n" - "「mail: <a href=\"mailto:[email protected]\">[email protected]</a>」 「pgp: <a href=\"/gpg.txt\">F0:42:A0:B6:CB:41:FD:A2</a>」\n" + "「mail: <a href=\"mailto:[email protected]\">[email protected]</a>」 " + "「irc: <a href=\"ircs:\/\/internetrelaychat.net:6697\">[email protected]</a>」 " + "「gh: <a href=\"https://github.com/rj1\">rj1</a>」 " + "「pgp: <a href=\"/gpg.txt\">F0:42:A0:B6:CB:41:FD:A2</a>」</div>" "</div>\n</footer>\n</div>\n</body>\n</html>\n", fp); }