summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/static/style/base.css7
-rw-r--r--src/site.cc5
2 files changed, 12 insertions, 0 deletions
diff --git a/example/static/style/base.css b/example/static/style/base.css
index d77b27b..cdfbe23 100644
--- a/example/static/style/base.css
+++ b/example/static/style/base.css
@@ -14,6 +14,13 @@ a.maps {
font-size: 90%;
}
+body > a#close {
+ position: absolute;
+ right: 1em;
+ top: 1em;
+ display: block;
+}
+
.subtitle {
text-color: lightgrey;
font-size: 90%;
diff --git a/src/site.cc b/src/site.cc
index ebc12a7..b54e862 100644
--- a/src/site.cc
+++ b/src/site.cc
@@ -281,6 +281,11 @@ private:
body->add_tag("h1", std::string(trip.title()));
+ body->add_tag("a", "X")
+ ->attr("href", "..")
+ ->attr("id", "close")
+ ->attr("title", "Close");
+
auto* list = body->add_tag("p")->add_tag("ul")->attr("class", "days");
for (size_t i = 0; i < trip.day_count(); ++i) {
auto& day = trip.day(i);