MD upgrades

This commit is contained in:
2025-11-03 09:53:54 -08:00
parent 3205827f3f
commit 4ee5c16098
6 changed files with 633 additions and 165 deletions

View File

@@ -24,13 +24,7 @@ pub async fn betalupi() -> Markup {
html!(
(Backlinks(&[("/", "home")], "whats-a-betalupi"))
(Markdown(MD_A))
br {}
(Markdown(MD_B))
br {}
(Markdown(MD))
img alt="betalupi map" class="image" src=(Image_Betalupi::URL) {}
)
@@ -38,7 +32,7 @@ pub async fn betalupi() -> Markup {
}
}
const MD_A: &str = r#"[es]: https://github.com/endless-sky/endless-sky
const MD: &str = r#"[es]: https://github.com/endless-sky/endless-sky
[*Stellaris*]: https://www.paradoxinteractive.com/games/stellaris/about
[Arabic]: https://en.wikipedia.org/wiki/List_of_Arabic_star_names
[wiki-betalupi]: https://en.wikipedia.org/wiki/Beta_Lupi
@@ -52,10 +46,16 @@ Stellar names (especially those of [Arabic] origin) make pretty good hostnames:
Beta Lupi also happens to be a real star in the southern constellation of Lupus ([wiki][wiki-betalupi]), but that's not particularly important.
A snippet of the [_Endless Sky_][es] map is below."#;
A snippet of the [_Endless Sky_][es] map is below.
const MD_B: &str = r#"**In other words:** Try finding a `.com` domain that...
<br/>
**In other words:** Try finding a `.com` domain that...
- Isn't already taken
- Doesn't sound awful
- Isn't owned by a scalper that's selling it for $300"#;
- Isn't owned by a scalper that's selling it for $300"
<br/>
"#;

View File

@@ -24,19 +24,7 @@ pub async fn links() -> Markup {
html!(
(Backlinks(&[("/", "home")], "links"))
(Markdown(MD_A))
hr style="margin-top: 8rem; margin-bottom: 8rem" {}
(Markdown(MD_B))
hr style="margin-top: 8rem; margin-bottom: 8rem" {}
(Markdown(MD_C))
hr style="margin-top: 8rem; margin-bottom: 8rem" {}
(Markdown(MD_D))
(Markdown(MD))
)
))
}
@@ -49,11 +37,13 @@ https://www.commitstrip.com/en/
http://www.3dprintmath.com/
*/
const MD_A: &str = r#"# Bookmarks
const MD: &str = r#"# Bookmarks
This is a heavily opinionated bookmarks toolbar."#;
This is a heavily opinionated bookmarks toolbar.
const MD_B: &str = r#"## Podcasts
<hr style="margin-top: 8rem; margin-bottom: 8rem"></hr>
## Podcasts
- :star: [Darknet Diaries](https://darknetdiaries.com/): A perennial classic.
- [Art of Manliness](https://www.artofmanliness.com/podcast/): Philosophy, literaure, psychology.
@@ -88,9 +78,11 @@ const MD_B: &str = r#"## Podcasts
- [User Friendly](https://en.wikipedia.org/wiki/User_Friendly): Old-school. Offline and archived.
- [PhD Comics](https://phdcomics.com/): Quality academic humor. Discontinued.
- :star: [Spintronics](https://store.upperstory.com/collections/spintronics/products/spintronics-act-one): Mechanical circuits. Very clever toy.
- :star: [Turing Tumble](https://store.upperstory.com/collections/turing-tumble-game/products/turing-tumble): Modern Dr. Nim"#;
- :star: [Turing Tumble](https://store.upperstory.com/collections/turing-tumble-game/products/turing-tumble): Modern Dr. Nim
const MD_C: &str = r#"## Tools
<hr style="margin-top: 8rem; margin-bottom: 8rem"></hr>
## Tools
- :star: [Numbat](https://numbat.dev/)
- [MxToolbox](https://mxtoolbox.com/)
@@ -157,9 +149,12 @@ const MD_C: &str = r#"## Tools
## Rust
- [Understanding Memory Ordering in Rust](https://emschwartz.me/understanding-memory-ordering-in-rust/)
- [Unfair Rust Quiz](https://this.quiz.is.fckn.gay/): wtfjs, but in Rust."#;
- [Unfair Rust Quiz](https://this.quiz.is.fckn.gay/): wtfjs, but in Rust.
const MD_D: &str = r#"## Misc
<hr style="margin-top: 8rem; margin-bottom: 8rem"></hr>
## Misc
- [Slide Rule Collection](https://www.followingtherules.info/)
- [MK-61 Command Reference](http://www.thimet.de/CalcCollection/Calculators/Elektronika-MK-61/CmdRef.html)