mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-02 19:15:49 +00:00
Update argument name
This commit is contained in:
parent
194da6562c
commit
ab5923a75d
@ -12,9 +12,9 @@ pub fn date() -> String {
|
|||||||
|
|
||||||
pub async fn create_blog_post_file(
|
pub async fn create_blog_post_file(
|
||||||
category: &str,
|
category: &str,
|
||||||
version: &str,
|
title: &str,
|
||||||
) -> anyhow::Result<File> {
|
) -> anyhow::Result<File> {
|
||||||
let dir = PathBuf::from(format!("content/blog/{category}/{version}"));
|
let dir = PathBuf::from(format!("content/blog/{category}/{title}"));
|
||||||
let file = dir.join("index.md");
|
let file = dir.join("index.md");
|
||||||
|
|
||||||
// VS Code (and probably other editors/IDEs) renders the path in the output
|
// VS Code (and probably other editors/IDEs) renders the path in the output
|
||||||
|
Loading…
Reference in New Issue
Block a user