diff --git a/routes/about.cpp b/routes/about.cpp index 354281b..013ed2c 100644 --- a/routes/about.cpp +++ b/routes/about.cpp @@ -37,10 +37,10 @@ void about_route(const httplib::Request& req, httplib::Response& res) { }), }), - Element("details", {{"class", "about_page-about"}, {"open", ""}}, { + !extended_description.str.empty() ? Element("details", {{"class", "about_page-about"}, {"open", ""}}, { Element("summary", {"About"}), preprocess_html(req, server, {}, std::move(extended_description)), - }), + }) : Node(""), Element("details", {{"class", "about_page-rules"}}, { Element("summary", {"Rules"}),