Compare commits

..

No commits in common. "b0bc2ea611c3d1c6bb4df9816c35a4268b89d397" and "514d4e033d8cf8783bb50cc93fcae48537da6fb8" have entirely different histories.

2 changed files with 2 additions and 8 deletions

View file

@ -139,10 +139,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("-", "_")
))
let config_file = env::var(format!("{}_CONFIG", env!("CARGO_BIN_NAME")))
.unwrap_or(String::from("config.toml"));
match tokio::fs::OpenOptions::new()
.read(true)

View file

@ -17,9 +17,6 @@
<h2>posts</h2>
<!-- prettier-ignore -->
<div>
{% if posts.is_empty() %}
there are no posts right now. check back later!
{% endif %}<!-- prettier-br -->
{% for post in posts %}
<div class="post">
<a href="/posts/{{ post.name }}"><b>{{ post.title }}</b></a>