Use note title as page title

main
cel 5 years ago
parent 53a3078585
commit de280b624c

@ -620,9 +620,15 @@ static int dpi_serve_zet(int fd, char *path) {
rc = dpi_send_header(fd, "text/html");
rc |= dprintf(fd,
"<!doctype html><head>"
"<title>§%s</title>"
"<title>");
char buf[128];
char *title = zet_get_title(id, buf, sizeof(buf));
rc |= write_html(fd, title, strlen(title));
rc |= dprintf(fd,
"</title>"
"<meta charset=utf-8>"
"</head><body>", id);
"</head><body>");
rc |= write_topbar(fd, PAGE_ZET, id);
rc |= dprintf(fd,
"<table style=\"width:100%%; height:100%%\"><tr>"

Loading…
Cancel
Save