diff --git a/Cargo.lock b/Cargo.lock index b22d3df..794f2ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -687,7 +687,7 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "mdpreview" -version = "0.1.1" +version = "0.1.2" dependencies = [ "axum", "clap", diff --git a/Cargo.toml b/Cargo.toml index d1a6a52..c165910 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdpreview" -version = "0.1.1" +version = "0.1.2" edition = "2024" authors = ["Vladislav Kan "] diff --git a/src/main.rs b/src/main.rs index cc33f08..53e1676 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ struct Args { host: String, /// Port to listen - #[arg(short, long, default_value_t = 8000)] + #[arg(short, long, default_value_t = 8080)] port: u16, /// Markdown documents directory root diff --git a/templates/file.html b/templates/file.html index 3ec4a26..c945ed4 100644 --- a/templates/file.html +++ b/templates/file.html @@ -34,6 +34,9 @@ .disconnected { background-color: #e74c3c; color: #fff; } .reconnecting { background-color: #f1c40f; color: #000; } + .footer { margin-top: 30px; color: #666; font-size: 0.9em; border-top: 1px solid #333; padding-top: 15px; } + .footer a { color: #757575; } + img { max-width: 100%; height: auto; @@ -53,7 +56,13 @@ {{CONTENT}} + + + +