aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2023-01-23 09:54:22 -0500
committerXe Iaso <me@christine.website>2023-01-23 09:54:53 -0500
commit295a2f993db8b1f7bb45d5d1d9c621ffe6400e58 (patch)
treeb2a05e83fd8ddbe0442cc887b2653b3d6d8dbba9 /src/handlers
parent36e516527d76954aa5434e66102f12c2c87a8637 (diff)
downloadxesite-295a2f993db8b1f7bb45d5d1d9c621ffe6400e58.tar.xz
xesite-295a2f993db8b1f7bb45d5d1d9c621ffe6400e58.zip
Add page that explains the characters in the blog
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs
index 7284ec9..a638c77 100644
--- a/src/handlers/mod.rs
+++ b/src/handlers/mod.rs
@@ -69,6 +69,15 @@ lazy_static! {
}
#[instrument(skip(state))]
+pub async fn characters(Extension(state): Extension<Arc<State>>) -> Markup {
+ HIT_COUNTER.with_label_values(&["characters"]).inc();
+ let state = state.clone();
+ let cfg = state.cfg.clone();
+
+ tmpl::characters(&cfg.characters)
+}
+
+#[instrument(skip(state))]
pub async fn index(Extension(state): Extension<Arc<State>>) -> Result<Markup> {
HIT_COUNTER.with_label_values(&["index"]).inc();
let state = state.clone();