Skip to content

Commit 5c2152e

Browse files
committed
Add link to miniserve GitHub to footer
Fixes #1479.
1 parent e462364 commit 5c2152e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Add `--size-display` to allow for toggling file size display between `human` and `exact` [#1261](https://github.com/svenstaro/miniserve/pull/1261) (thanks @Lzzzzzt)
1414
- Add well-known healthcheck route at `/__miniserve_internal/healthcheck` (of `/<prefix>/__miniserve_internal/healthcheck` when using `--route-prefix`)
1515
- Add asynchronous recursive directory size counting [#1482](https://github.com/svenstaro/miniserve/pull/1482)
16+
- Add link to miniserve GitHub page to footer
1617

1718
## [0.29.0] - 2025-02-06
1819
- Make URL encoding fully WHATWG-compliant [#1454](https://github.com/svenstaro/miniserve/pull/1454) (thanks @cyqsimon)

src/renderer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ fn breadcrumbs_to_path_string(breadcrumbs: &[Breadcrumb]) -> String {
270270
fn version_footer() -> Markup {
271271
html! {
272272
div.version {
273-
(format!("{}/{}", crate_name!(), crate_version!()))
273+
a href="https://github.com/svenstaro/miniserve" {
274+
(crate_name!())
275+
}
276+
(format!("/{}", crate_version!()))
274277
}
275278
}
276279
}

0 commit comments

Comments
 (0)