aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-03-10 06:00:05 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2025-03-10 06:00:05 +0000
commit5c2152e8fb7c3b09c74344fb36a658db6c81e30b (patch)
tree100f755008e9ca71ffcd280058861c0e7691178f
parentMerge pull request #1484 from ahti/animations (diff)
downloadminiserve-5c2152e8fb7c3b09c74344fb36a658db6c81e30b.tar.gz
miniserve-5c2152e8fb7c3b09c74344fb36a658db6c81e30b.zip
Add link to miniserve GitHub to footer
Fixes #1479.
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/renderer.rs5
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f030e29..14f2a58 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Add `--size-display` to allow for toggling file size display between `human` and `exact` [#1261](https://github.com/svenstaro/miniserve/pull/1261) (thanks @Lzzzzzt)
- Add well-known healthcheck route at `/__miniserve_internal/healthcheck` (of `/<prefix>/__miniserve_internal/healthcheck` when using `--route-prefix`)
- Add asynchronous recursive directory size counting [#1482](https://github.com/svenstaro/miniserve/pull/1482)
+- Add link to miniserve GitHub page to footer
## [0.29.0] - 2025-02-06
- Make URL encoding fully WHATWG-compliant [#1454](https://github.com/svenstaro/miniserve/pull/1454) (thanks @cyqsimon)
diff --git a/src/renderer.rs b/src/renderer.rs
index 3f67695..7846388 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -270,7 +270,10 @@ fn breadcrumbs_to_path_string(breadcrumbs: &[Breadcrumb]) -> String {
fn version_footer() -> Markup {
html! {
div.version {
- (format!("{}/{}", crate_name!(), crate_version!()))
+ a href="https://github.com/svenstaro/miniserve" {
+ (crate_name!())
+ }
+ (format!("/{}", crate_version!()))
}
}
}