Compare commits

..

No commits in common. "bd7823dc148d294935e9e13221f16009260ed44b" and "c1e1670db3073aa690adefb5168f6346df33b35b" have entirely different histories.

3 changed files with 1 additions and 6 deletions

View file

@ -141,7 +141,7 @@ impl Default for CacheConfig {
pub async fn load() -> Result<Config> {
let config_file = env::var(format!(
"{}_CONFIG",
env!("CARGO_BIN_NAME").to_uppercase().replace('-', "_")
env!("CARGO_BIN_NAME").to_uppercase().replace("-", "_")
))
.unwrap_or(String::from("config.toml"));
match tokio::fs::OpenOptions::new()

View file

@ -56,7 +56,6 @@ struct IndexTemplate {
title: String,
description: String,
posts: Vec<PostMetadata>,
rss: bool,
}
#[derive(Template)]
@ -88,7 +87,6 @@ async fn index(
title: state.config.title.clone(),
description: state.config.description.clone(),
posts,
rss: state.config.rss.enable,
})
}

View file

@ -9,9 +9,6 @@
<meta property="og:description" content="{{ description }}" />
<title>{{ title }}</title>
<link rel="stylesheet" href="/static/style.css" />
{% if rss %}
<link rel="alternate" type="application/rss+xml" title="{{ title }}" href="/feed.xml" />
{% endif %}
</head>
<body>
<main>