added categories

This commit is contained in:
2026-02-28 19:09:53 +01:00
parent be47059b32
commit e9855ec6a1
15 changed files with 169 additions and 129 deletions
+3 -2
View File
@@ -13,8 +13,8 @@ use syntect::html::highlighted_html_for_string;
use tera::Context;
use crate::{
AppState, SYNTAX_SET, TEMPLATES, THEME_SET, WikiConfig, changelog, get_nav_links,
get_summary_data,
AppState, SYNTAX_SET, TEMPLATES, THEME_SET, WikiConfig, changelog,
fs::{get_nav_links, get_summary_data},
};
pub struct Renderer<'a> {
@@ -186,6 +186,7 @@ pub async fn render_wiki_page(
let mut context = Context::new();
context.insert("title", &config.title);
context.insert("category", &config.category);
context.insert("content", &html_output);
context.insert("infobox", &infobox_list);
context.insert("main_image", &main_image_path);