kisscommunity

kisscommunity.bvnf.space site sources
git clone git://bvnf.space/home/kiss/kisscommunity.git
Log | Files | Refs | Submodules | README

commit ad7dccf165cdfa36ffb186161224c4c6a55242a7
parent 68f29ca91db1d099b597f56ba0933b250c0efcda
Author: aabacchus <ben@bvnf.space>
Date:   Mon, 18 Jul 2022 11:16:03 +0100

build-page: write page name to title

Diffstat:
Mbuild-page.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-page.c b/build-page.c @@ -21,7 +21,7 @@ char *html_header = "<head>\n" "\t<meta charset=\"utf-8\"/>\n" "\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n" - "\t<title>KISS Community Wiki</title>\n" + "\t<title>%s - KISS Community Wiki</title>\n" "\t<link rel=\"icon\" href=\"data:image/gif;base64,R0lGODlhEAAQAPEDAAAAAP8AAP///wAAACH5BAX//wMALAAAAAAQABAAAAImnB+ni8kf4mNRzmbvqE5zPQDiqI3kBQhmqZ5TuqKtyMavCZT4UgAAOw==\"/>\n" "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"/>\n" "</head>\n"; @@ -282,7 +282,7 @@ int main(int argc, char *argv[]) { if (chdir(dir) == -1) die_perror("chdir: %s", dir); - puts(html_header); + printf(html_header, page ? page : "Home"); print_nav_bar(); puts("<div id=\"content\">"); print_menu_panel(page);