aboutsummaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/template.rs b/src/template.rs
index 7e47e65..2e4c8a6 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -7,6 +7,7 @@ use std::path::Path;
const TXT_TEMPLATE: &str = include_str!("../templates/index.txt");
const HTML_TEMPLATE: &str = include_str!("../templates/index.html");
const GMI_TEMPLATE: &str = include_str!("../templates/index.gmi");
+const GPH_TEMPLATE: &str = include_str!("../templates/index.gph");
const RSS_TEMPLATE: &str = include_str!("../templates/feed.xml");
// Parse and Render
@@ -292,6 +293,7 @@ fn find_default(filename: &str) -> Option<String> {
"index.txt" => Some(TXT_TEMPLATE.to_string()),
"index.html" => Some(HTML_TEMPLATE.to_string()),
"index.gmi" => Some(GMI_TEMPLATE.to_string()),
+ "index.gph" => Some(GPH_TEMPLATE.to_string()),
"feed.xml" => Some(RSS_TEMPLATE.to_string()),
&_ => None,
}