summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2025-01-05 08:34:26 +0100
committerGravatar default2025-01-05 08:34:26 +0100
commit17d7e0027abb48040ef989b1894bcd0bc28c9faa (patch)
tree27c9fe19b620da9765c34c8f82b3ee47d197821d /httpd.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-17d7e0027abb48040ef989b1894bcd0bc28c9faa.tar.gz
snac2-17d7e0027abb48040ef989b1894bcd0bc28c9faa.tar.xz
snac2-17d7e0027abb48040ef989b1894bcd0bc28c9faa.zip
Use the site's CSS in the /share page.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 73e539d..804ff1b 100644
--- a/httpd.c
+++ b/httpd.c
@@ -169,7 +169,8 @@ const char *share_page = ""
169"<html>\n" 169"<html>\n"
170"<head>\n" 170"<head>\n"
171"<title>%s - snac</title>\n" 171"<title>%s - snac</title>\n"
172"<meta content=\"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no\" name=\"viewport\">" 172"<meta content=\"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no\" name=\"viewport\">\n"
173"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s/style.css\"/>\n"
173"<style>:root {color-scheme: light dark}</style>\n" 174"<style>:root {color-scheme: light dark}</style>\n"
174"</head>\n" 175"</head>\n"
175"<body><h1>%s link share</h1>\n" 176"<body><h1>%s link share</h1>\n"
@@ -310,6 +311,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
310 *ctype = "text/html"; 311 *ctype = "text/html";
311 *body = xs_fmt(share_page, 312 *body = xs_fmt(share_page,
312 xs_dict_get(srv_config, "host"), 313 xs_dict_get(srv_config, "host"),
314 srv_baseurl,
313 xs_dict_get(srv_config, "host"), 315 xs_dict_get(srv_config, "host"),
314 srv_baseurl, 316 srv_baseurl,
315 s, 317 s,