commit 17d7e00

default  ·  2025-01-05 07:34:26 +0000 UTC
parent c7178f9
Use the site's CSS in the /share page.
1 files changed,  +3, -1
+3, -1
 1@@ -169,7 +169,8 @@ const char *share_page = ""
 2 "<html>\n"
 3 "<head>\n"
 4 "<title>%s - snac</title>\n"
 5-"<meta content=\"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no\" name=\"viewport\">"
 6+"<meta content=\"width=device-width, initial-scale=1, minimum-scale=1, user-scalable=no\" name=\"viewport\">\n"
 7+"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s/style.css\"/>\n"
 8 "<style>:root {color-scheme: light dark}</style>\n"
 9 "</head>\n"
10 "<body><h1>%s link share</h1>\n"
11@@ -310,6 +311,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
12         *ctype = "text/html";
13         *body  = xs_fmt(share_page,
14             xs_dict_get(srv_config, "host"),
15+            srv_baseurl,
16             xs_dict_get(srv_config, "host"),
17             srv_baseurl,
18             s,