Add meta tag to make pages look better on browsers

This commit is contained in:
blankie 2023-04-06 22:24:45 +07:00
parent 9526a0df1b
commit f1d727b87c
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ void serve(const httplib::Request& req, httplib::Response& res, const Config& co
Element("head", {
Element("meta", {{"charset", "utf-8"}}, {}),
Element("title", {std::move(title)}),
Element("link", {{"rel", "stylesheet"}, {"href", std::move(css_url)}}, {})
Element("link", {{"rel", "stylesheet"}, {"href", std::move(css_url)}}, {}),
Element("meta", {{"name", "viewport"}, {"content", "width=device-width,initial-scale=1"}}, {})
}),
std::move(element)
});