diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-16 16:41:52 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-16 16:41:52 +0200 |
| commit | 0e3bcda2ce1ba4bff5d457e48a82db6e6289aad6 (patch) | |
| tree | a8109e25362566cc4b24ff3cf94d951251b778d3 /src/file_handler | |
| parent | 7235e9b1b7ad396e68d2657c58aeb1d9147047c4 (diff) | |
Replace gemini links
Diffstat (limited to 'src/file_handler')
| -rw-r--r-- | src/file_handler/file_strategies/gemini.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_handler/file_strategies/gemini.rs b/src/file_handler/file_strategies/gemini.rs index 04e2b6a..1c8a111 100644 --- a/src/file_handler/file_strategies/gemini.rs +++ b/src/file_handler/file_strategies/gemini.rs @@ -75,7 +75,8 @@ impl FileHandlerStrategy for Strategy { let relative_path = file.path.strip_prefix(&source).unwrap(); - let complete_destination = destination.join(relative_path); + let mut complete_destination = destination.join(relative_path); + complete_destination.set_extension("html"); let destination_parent = complete_destination.parent().unwrap(); create_dir_all(destination_parent).unwrap(); |