diff --git a/CHANGELOG.md b/CHANGELOG.md index b4bb35c..b39f1e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/lang/en/). +## `v0.6.3` - 20.07.2026 +### Fixed +- Fixed minify script and templates. + + +--- + ## `v0.6.2` - 20.07.2026 ### Changed - Links are now opens in new tab. diff --git a/Cargo.lock b/Cargo.lock index e41ae37..e166e36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1567,7 +1567,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "mdpreview" -version = "0.6.2" +version = "0.6.3" dependencies = [ "askama", "askama_axum", diff --git a/Cargo.toml b/Cargo.toml index ff20fdb..a5e67b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdpreview" -version = "0.6.2" +version = "0.6.3" edition = "2024" authors = ["Vladislav Kan "] build = "build.rs" diff --git a/build.rs b/build.rs index 9e7f728..daa3f39 100644 --- a/build.rs +++ b/build.rs @@ -17,9 +17,9 @@ fn main() { println!("cargo:rerun-if-env-changed=FORCE_DEPS_DOWNLOAD"); println!("cargo:rerun-if-changed=templates/"); - minify_template_file("templates/base.html", "templates/base.min.html").unwrap(); - minify_template_file("templates/dir.html", "templates/dir.min.html").unwrap(); - minify_template_file("templates/file.html", "templates/file.min.html").unwrap(); + minify_template_file("templates/base.html", "templates/.base.min.html").unwrap(); + minify_template_file("templates/dir.html", "templates/.dir.min.html").unwrap(); + minify_template_file("templates/file.html", "templates/.file.min.html").unwrap(); let out_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); let assets_path = Path::new(&out_dir).join("assets"); diff --git a/src/main.rs b/src/main.rs index 52de12a..44e2d09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,7 +52,7 @@ pub struct FileEntry { } #[derive(Template)] -#[template(path = "dir.min.html")] +#[template(path = ".dir.min.html")] pub struct DirectoryTemplate { pub title_path: String, pub files: Vec, @@ -65,7 +65,7 @@ pub struct DirectoryTemplate { } #[derive(Template)] -#[template(path = "file.min.html")] +#[template(path = ".file.min.html")] pub struct NoteTemplate { pub filename: String, pub back_link: String, diff --git a/templates/base.html b/templates/base.html index 08ac6e4..5af0db3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -236,8 +236,6 @@ + diff --git a/templates/dir.html b/templates/dir.html index e4f9794..a40bb2e 100644 --- a/templates/dir.html +++ b/templates/dir.html @@ -1,4 +1,4 @@ -{% extends "base.min.html" %} +{% extends ".base.min.html" %} {% block title %}Directory: /{{ title_path }}{% endblock %} diff --git a/templates/file.html b/templates/file.html index 91f74f6..070af59 100644 --- a/templates/file.html +++ b/templates/file.html @@ -1,4 +1,4 @@ -{% extends "base.min.html" %} +{% extends ".base.min.html" %} {% block title %}{{ filename }}{% endblock %}