Skip to content

Commit

Permalink
update axum, remove twitter profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Austionian committed Jan 2, 2025
1 parent 756542d commit b19d324
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 66 deletions.
102 changes: 47 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
axum = "0.7"
axum = "0.8"
chrono = { version = "0.4", default-features = false, features = ["serde"] }
comrak = "0.28"
comrak = "0.32"
config = { git = "https://github.com/mehcode/config-rs.git", rev = "e3c1d0b452639478662a44f15ef6d5b6d969bf9b", default-features = false, features = [
"yaml",
] }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn startup() -> Result<Router, String> {

let blog_routes = Router::new()
.route("/", get(routes::blog))
.route("/:post_name", get(routes::get_blog_post));
.route("/{post_name}", get(routes::get_blog_post));

Ok(Router::new()
.nest_service("/assets", ServeDir::new("assets"))
Expand All @@ -86,7 +86,7 @@ pub fn startup() -> Result<Router, String> {
.nest("/bl0g", blog_routes)
.route("/pr0jects", get(routes::projects))
.route("/game", get(routes::game))
.route("/read_c0unt/:post_id", get(routes::read_count))
.route("/read_c0unt/{post_id}", get(routes::read_count))
.route("/feed.xml", get(routes::feed))
.fallback(routes::handle_404)
.layer(ServiceBuilder::new().layer(CompressionLayer::new()))
Expand Down
16 changes: 9 additions & 7 deletions templates/includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
<a
class="group -m-1 p-1 flex"
aria-label="Follow on Twitter"
href="https://twitter.com/austin_rooks"
><svg
viewBox="0 0 24 24"
aria-hidden="true"
href="https://bsky.app/profile/r00ks.bsky.social"
>
<svg
viewBox="0 0 600 530"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
class="mr-2 h-6 w-6 fill-zinc-500 transition group-hover:fill-zinc-600 dark:fill-zinc-400 dark:group-hover:fill-zinc-300"
>
<path
d="M20.055 7.983c.011.174.011.347.011.523 0 5.338-3.92 11.494-11.09 11.494v-.003A10.755 10.755 0 0 1 3 18.186c.308.038.618.057.928.058a7.655 7.655 0 0 0 4.841-1.733c-1.668-.032-3.13-1.16-3.642-2.805a3.753 3.753 0 0 0 1.76-.07C5.07 13.256 3.76 11.6 3.76 9.676v-.05a3.77 3.77 0 0 0 1.77.505C3.816 8.945 3.288 6.583 4.322 4.737c1.98 2.524 4.9 4.058 8.034 4.22a4.137 4.137 0 0 1 1.128-3.86A3.807 3.807 0 0 1 19 5.274a7.657 7.657 0 0 0 2.475-.98c-.29.934-.9 1.729-1.713 2.233A7.54 7.54 0 0 0 22 5.89a8.084 8.084 0 0 1-1.945 2.093Z"
></path>
d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z"
/>
</svg>
<div class="hidden lg:block" aria-hidden="true">@austin_rooks</div></a
<div class="hidden lg:block" aria-hidden="true">@r00ks.bsky.social</div></a
>
<a
class="group -m-1 p-1 flex"
Expand Down

0 comments on commit b19d324

Please sign in to comment.