diff options
| author | Xe Iaso <me@christine.website> | 2023-01-23 09:54:22 -0500 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2023-01-23 09:54:53 -0500 |
| commit | 295a2f993db8b1f7bb45d5d1d9c621ffe6400e58 (patch) | |
| tree | b2a05e83fd8ddbe0442cc887b2653b3d6d8dbba9 /src/handlers | |
| parent | 36e516527d76954aa5434e66102f12c2c87a8637 (diff) | |
| download | xesite-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.rs | 9 |
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(); |
