diff options
87 files changed, 2439 insertions, 1771 deletions
@@ -1551,14 +1551,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799" +checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" dependencies = [ "libc", "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -2812,16 +2812,16 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.19.2" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439" +checksum = "d76ce4a75fb488c605c54bf610f221cea8b0dafb53333c1a67e8ee199dcd2ae3" dependencies = [ + "autocfg", "bytes", "libc", "memchr", "mio", "num_cpus", - "once_cell", "parking_lot", "pin-project-lite", "signal-hook-registry", @@ -2929,9 +2929,9 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" [[package]] name = "tower-service" @@ -3428,7 +3428,7 @@ dependencies = [ [[package]] name = "xesite" -version = "2.5.0" +version = "3.0.0" dependencies = [ "axum", "axum-extra", @@ -1,8 +1,8 @@ [package] name = "xesite" -version = "2.5.0" +version = "3.0.0" authors = ["Xe Iaso <me@xeiaso.net>"] -edition = "2018" +edition = "2021" build = "src/build.rs" repository = "https://github.com/Xe/site" license = "zlib" diff --git a/blog/a-tool-to-aid-forgetfulness-2022-01-12.markdown b/blog/a-tool-to-aid-forgetfulness-2022-01-12.markdown index fad70cd..6cb032b 100644 --- a/blog/a-tool-to-aid-forgetfulness-2022-01-12.markdown +++ b/blog/a-tool-to-aid-forgetfulness-2022-01-12.markdown @@ -1,7 +1,7 @@ --- title: A Tool to Aid Forgetfulness date: 2022-01-12 -series: stories +series: short-story --- The Egyptian God Thoth lived in the Egyptian city of Naucratis. Thoth was the diff --git a/blog/anbernic-win600-review.markdown b/blog/anbernic-win600-review.markdown index eeeafde..1a4a7bc 100644 --- a/blog/anbernic-win600-review.markdown +++ b/blog/anbernic-win600-review.markdown @@ -1,7 +1,7 @@ --- title: Anbernic Win600 Review date: 2022-08-19 -series: review +series: reviews tags: - anbernic - win600 diff --git a/blog/fear-07-24-2018.markdown b/blog/fear-07-24-2018.markdown index cf47527..8e06d5a 100644 --- a/blog/fear-07-24-2018.markdown +++ b/blog/fear-07-24-2018.markdown @@ -3,7 +3,7 @@ title: Fear date: 2018-07-24 thanks: CelestialBoon, no really this guy is amazing and doesn't get enough credit, I'm so grateful for him. for: Twilight Sparkle -series: stories +series: short-story --- _I must not fear._ diff --git a/blog/one-day-2018-11-01.markdown b/blog/one-day-2018-11-01.markdown index 20e969a..c3d2826 100644 --- a/blog/one-day-2018-11-01.markdown +++ b/blog/one-day-2018-11-01.markdown @@ -2,7 +2,7 @@ title: "One Day" date: 2018-11-01 for: "Nicole" -series: stories +series: short-story --- In the beginning there was the void. All was the void and the void was all. diff --git a/blog/site-update-2020-07-16.markdown b/blog/site-update-2020-07-16.markdown index 431ee4d..b89e427 100644 --- a/blog/site-update-2020-07-16.markdown +++ b/blog/site-update-2020-07-16.markdown @@ -3,6 +3,7 @@ title: "Site Update: Rewrite in Rust" date: 2020-07-16 tags: - rust +series: site-update --- Hello there! You are reading this post thanks to a lot of effort, research and diff --git a/blog/site-update-2021-12-19.markdown b/blog/site-update-2021-12-19.markdown index f92693e..d563c57 100644 --- a/blog/site-update-2021-12-19.markdown +++ b/blog/site-update-2021-12-19.markdown @@ -1,6 +1,7 @@ --- title: "Site Updates: Better Contrast Ratio and Using Xeact" date: 2021-12-19 +series: site-update --- Happy holidays all! As the year rolls to a close I wanted to take a moment to diff --git a/blog/site-update-axum-2022-03-21.markdown b/blog/site-update-axum-2022-03-21.markdown index f20e547..1529050 100644 --- a/blog/site-update-axum-2022-03-21.markdown +++ b/blog/site-update-axum-2022-03-21.markdown @@ -1,6 +1,7 @@ --- title: "Site Update: Axum" date: 2022-03-21 +series: site-update --- I have made a bunch of huge changes to my website that hopefully you won't diff --git a/blog/site-update-hero-images.markdown b/blog/site-update-hero-images.markdown index 41cbafe..ac31db5 100644 --- a/blog/site-update-hero-images.markdown +++ b/blog/site-update-hero-images.markdown @@ -1,6 +1,7 @@ --- title: "Site Update: Hero Images" date: 2022-06-08 +series: site-update --- For a while I've been wondering how I can add dramatic flair to my website with diff --git a/blog/site-update-let-there-be-light-2021-03-13.markdown b/blog/site-update-let-there-be-light-2021-03-13.markdown index aaa7a68..9c1572e 100644 --- a/blog/site-update-let-there-be-light-2021-03-13.markdown +++ b/blog/site-update-let-there-be-light-2021-03-13.markdown @@ -3,6 +3,7 @@ title: "Site Update: Let There Be Light" date: 2021-03-13 tags: - a11y +series: site-update --- In the beginning there was darkness. Darkness was all, and darkness was where the author of this site was comfortable with. However, we live in a time of (supposed) enlightenment. Thanks to the magic of CSS media queries, if you have your computer set to prefer light mode, you will get the light mode version of this website. @@ -13,4 +14,4 @@ In the beginning there was darkness. Darkness was all, and darkness was where th </center> -According to [caniuse.com](https://caniuse.com/?search=prefers-color-scheme) I should _probably_ be fine with this. Please contact me if this acts up for you in an odd way. It shouldn't, but knowing the internet I probably messed something up somewhere.
\ No newline at end of file +According to [caniuse.com](https://caniuse.com/?search=prefers-color-scheme) I should _probably_ be fine with this. Please contact me if this acts up for you in an odd way. It shouldn't, but knowing the internet I probably messed something up somewhere. diff --git a/blog/site-update-mastodon-quoting.markdown b/blog/site-update-mastodon-quoting.markdown index 72bb865..72dd50c 100644 --- a/blog/site-update-mastodon-quoting.markdown +++ b/blog/site-update-mastodon-quoting.markdown @@ -7,6 +7,7 @@ tags: - sonicfrontiers - robocadey - noxp +series: site-update --- <xeblog-hero ai="Waifu Diffusion v1.3 (float16)" file="foxgirl-surfing" prompt="landscape, mountains, breath of the wild, 1girl, fox ears, dark blue hair, blue eyes, surfboard, surfing, beach, simple sketch, clean lines, rakugaki"></xeblog-hero> diff --git a/blog/site-update-patron-page-fixed.markdown b/blog/site-update-patron-page-fixed.markdown index a9974d9..f82de36 100644 --- a/blog/site-update-patron-page-fixed.markdown +++ b/blog/site-update-patron-page-fixed.markdown @@ -1,6 +1,7 @@ --- title: "Site Update: I Fixed the Patron Page" date: 2022-05-18 +series: site-update --- So I fixed [the patron page](https://xeiaso.net/patrons) and the diff --git a/blog/site-update-rss-bandwidth-2021-01-14.markdown b/blog/site-update-rss-bandwidth-2021-01-14.markdown index ff4f611..82dd029 100644 --- a/blog/site-update-rss-bandwidth-2021-01-14.markdown +++ b/blog/site-update-rss-bandwidth-2021-01-14.markdown @@ -4,6 +4,7 @@ date: 2021-01-14 tags: - devops - optimization +series: site-update --- Well, so I think I found out where my Kubernetes cluster cost came from. For diff --git a/blog/site-update-salary-transparency.markdown b/blog/site-update-salary-transparency.markdown index 7b4a536..33b9550 100644 --- a/blog/site-update-salary-transparency.markdown +++ b/blog/site-update-salary-transparency.markdown @@ -1,7 +1,8 @@ --- title: "Site Update: Salary Transparency Page Added" date: 2022-06-14 -author: Sephie +author: sephiraloveboo +series: site-update --- <xeblog-hero file="miku-dark-souls" prompt="hatsune miku, elden ring, dark souls, concept art, crowbar"></xeblog-hero> diff --git a/blog/site-update-v3.markdown b/blog/site-update-v3.markdown new file mode 100644 index 0000000..1ee41b6 --- /dev/null +++ b/blog/site-update-v3.markdown @@ -0,0 +1,417 @@ +--- +title: "Site Update: Version 3.0" +date: 2022-11-26 +author: Heartmender +series: site-update +tags: + - dhall + - LaTeX + - rust + - typescript + - Xeact +--- + +<xeblog-hero ai="Waifu Diffusion v1.3 (float16)" file="aoi-onsen" prompt="1girl, fox ears, dark blue hair, blue eyes, kimono, festival, landscape, makoto shinrai, arknights, fireworks, pagodas, onsen, long hair, princess, -hands, -amputee"></xeblog-hero> + +Hey all! Welcome to Xesite 3.0! Over the last few days I've taken a huge chunk +out of my backlog and I have redone _a lot_ of this website. My hope is that +this will make it faster, more reliable and ultimately make things a lot easier +for everyone. There's a lot of improvements here so I'm just going to start +going over them one by one. + +## Project name changed + +This website has historically been named `site`. It's had a lot of work put into +it over the years and I've never really referred to it by anything but "the +website" or "my blog". However I've noticed a change in my notes and I think I +should make this official. The project behind this website is now officially +called `xesite`. + +<xeblog-conv name="Mara" mood="hmm">What about all of the custom HTML tags? +Aren't they all called `xeblog-$NAME`? Are you going to change +those?</xeblog-conv> + +<xeblog-conv name="Cadey" mood="coffee">The custom HTML tags are an +implementation detail, not something that is exposed to end users. Plus, those +are now in my muscle memory so I can't really change those if I wanted +to.</xeblog-conv> + +## Blogpost series have metadata + +When I implemented series support in the blog, it was kind of a hack. Series are +intended to function kind of like tags, but more for tagging things that +progress in a logical series. As an example, take a look at the page for my +[site-to-site WireGuard VPN](https://xeiaso.net/blog/series/site-to-site-wireguard) +series. It shows a little description for the series and in the future I will +likely add other metadata like a series image. + +This is powered by my new `SeriesDescription` Dhall record type. + +<xeblog-conv name="Mara" mood="hacker">For context, +[Dhall](https://dhall-lang.org) is a Haskell-like non-Turing-complete +configuration language that you can think of like JSON or YAML but with +functions, imports, and static types.</xeblog-conv> + +I've never really covered how Dhall works on this blog before, so I'll take a +look at this and the `seriesDescriptions.dhall` file to show off how damn cool +Dhall is. + +One of the most unique features of Dhall as a configuration language is its +record completion operator `::`. This allows you to specify a record (read: +object)'s type and also a set of _default values_ for that record. Let's take a +look at the `SeriesDescription` record type: + +```dhall +-- dhall/types/SeriesDescription.dhall +{ Type = { name : Text, details : Text } +, default = { name = "", details = "" } +} +``` + +If I wanted to use this from inside my Dhall configuration, I would need to: + +* Import the type +* Create a value with the `::` operator + +The description for the `site-to-site-wireguard` series could look something +like this: + +```dhall +-- dhall/series/site-to-site-wireguard.dhall +let xesite = ../types/package.dhall + +let SeriesDescription = xesite.SeriesDescription + +in SeriesDescription::{ + , name = "site-to-site-wireguard" + , details = "Instructions on setting up your own VPN with WireGuard." + } +``` + +You declare your imports with URLs or filesystem paths and other aliases using +`let`, and then you declare what to do with those variables after `in`. If +you've never used Haskell or Lisp before, you can imagine `let` creating a block +of scope just like an extra layer of curly braces in JavaScript or other C-like +languages: + +```javascript +{ + let foo = "bar"; + console.log(foo); +} + +// foo isn't usable from here +``` + +As you can imagine, this gets [way more +elaborate](https://github.com/Xe/site/blob/main/dhall/signalboost.dhall) when +you get more detail into the mix. However, it's all really easy to understand. +It's just different than you might be expecting at first glance. + +If you've never really used Dhall before, I really suggest taking a look at it. +It's what I use for the configuration of all of my tools when I'm allowed to +make those decisions. It's also got the ability to read from environment +variables, which can make it easier to safely turn a bunch of raw strings from |
