mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-10 02:26:45 -07:00
fix building the site on windows
This commit is contained in:
parent
ecf408d796
commit
e770a9bd8d
2 changed files with 9 additions and 8 deletions
|
@ -27,9 +27,12 @@ fn with_build_path(
|
|||
}
|
||||
|
||||
/// Helper to get the "name" of a path.
|
||||
fn get_name(path: &Path) -> (PathBuf, String) {
|
||||
pub fn get_name(path: &Path) -> (PathBuf, String) {
|
||||
let name = path.with_extension("");
|
||||
let name_str = name.display().to_string();
|
||||
let name_str = name
|
||||
.display()
|
||||
.to_string()
|
||||
.replace(std::path::MAIN_SEPARATOR, "/");
|
||||
(name, name_str)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue