Commit
Message
Changed Files (4)
-
modified CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md index 11fc6bf..618162b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [unreleased] + +### βοΈ Miscellaneous Tasks + +- Fix git push before git tag in release task ## [0.4.0] - 2026-05-31 ### π Features -
modified README.md
diff --git a/README.md b/README.md index 93fcdba..db77e9f 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ You can dump the default theme/templates to your local filesystem with `abbaye d This will create a `.abbaye/theme/` directory in your current directory with the default templates, which you can then β¨customizeβ¨. +If this directory contains a `static/` directory, it will be copied to the output directory. So you can add custom static assets to your site, and even use a separate CSS! + ## Future plans - [x] Add support for theming -
modified src/main.rs
diff --git a/src/main.rs b/src/main.rs index df2e07e..07f5793 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,6 +97,8 @@ //! //! This will create a `.abbaye/theme/` directory in your current directory with the default templates, which you can then β¨customizeβ¨. //! +//! If this directory contains a `static/` directory, it will be copied to the output directory. So you can add custom static assets to your site, and even use a separate CSS! +//! //! ## Future plans //! //! - [x] Add support for theming -
modified src/site.rs
diff --git a/src/site.rs b/src/site.rs index 5f47233..a15df13 100644 --- a/src/site.rs +++ b/src/site.rs @@ -104,6 +104,10 @@ pub async fn build_site(config: AbbayeConfig) -> Result<()> { tera.add_raw_template("version_index.html", TEMPLATE_VERSION_INDEX) .into_diagnostic()?; } + // If there's a `static` directory, copy it to the output directory, to improve user customization. + if theme_path.join("static").is_dir() { + copy_dir_recursive(theme_path.join("static"), output_dir.join("static")).await?; + } // ββ 3. Builders βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ let mut dist_artifacts = Vec::new();