Skip to content

Commit

Permalink
insert year into aoc link
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 21, 2024
1 parent 68c5225 commit d872c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ pub fn PadPage() -> impl IntoView {
_ = window().navigator().clipboard().write_text(CODE)
};
Some(view! {
<p>"Join the official "<a href="https://adventofcode.com">"Advent of Code "{year}</a>" Uiua community leaderboard "<a href="https://adventofcode.com/2024/leaderboard/private">"here!"</a>"  "<button on:click=copy_code>"Copy code"</button></p>
<p>"Join the official "<a href={format!("https://adventofcode.com/{year}")}>"Advent of Code "{year}</a>" Uiua community leaderboard "<a href={format!("https://adventofcode.com/{year}/leaderboard/private")}>"here!"</a>"  "<button on:click=copy_code>"Copy code"</button></p>
})
} else {
None
Expand Down

0 comments on commit d872c0b

Please sign in to comment.