From 8f5034b8b7f31a8fb8864728942a6858467c6c87 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 4 Feb 2023 14:06:12 +0100 Subject: Add works method to render single work pages --- src/works/stories.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/works/stories.rs') diff --git a/src/works/stories.rs b/src/works/stories.rs index 4620553..c68745a 100644 --- a/src/works/stories.rs +++ b/src/works/stories.rs @@ -18,7 +18,15 @@ pub struct Story { } // see src/works/mod.rs for information of Works trait -impl super::Works for Stories {} +impl super::Works for Stories { + fn render_single_pages( + &self, + tera_instance: &tera::Tera, + template_name: &str, + ) -> anyhow::Result<()> { + !unimplemented!() + } +} // language of story content #[derive(Deserialize, Serialize, Debug)] -- cgit v1.2.3