Compare commits

..

2 Commits

Author SHA1 Message Date
11d7f8b0d0 TTL
Some checks failed
CI / Check typos (push) Successful in 8s
CI / Check links (push) Failing after 10s
CI / Clippy (push) Successful in 1m0s
CI / Build and test (push) Successful in 1m18s
CI / Build container (push) Successful in 1m4s
CI / Deploy on waypoint (push) Successful in 43s
2025-11-11 23:46:10 -08:00
0da489dc1b 404
Some checks failed
CI / Check typos (push) Successful in 9s
CI / Check links (push) Failing after 11s
CI / Clippy (push) Successful in 1m1s
CI / Build and test (push) Successful in 1m19s
CI / Build container (push) Successful in 1m5s
CI / Deploy on waypoint (push) Successful in 50s
2025-11-11 23:00:42 -08:00
2 changed files with 0 additions and 25 deletions

View File

@@ -1,22 +0,0 @@
[`utoipa`]: https://docs.rs/utoipa/latest/utoipa/
[`axum`]: https://docs.rs/axum/latest/axum/
# Mark's webpage
This is the source code behind [betalupi.com](https://betalupi.com), featuring a very efficient mini web framework written from scratch in Rust. It uses...
- [Axum](https://github.com/tokio-rs/axum) as an http server
- [Maud](https://maud.lambda.xyz/) for html templates
- [Grass](https://github.com/connorskees/grass) to parse and compile [sass](https://sass-lang.com/)
- [markdown-it](https://github.com/markdown-it-rust/markdown-it) to convert md to html
## Overview & Arch:
- [`bin/webpage`](./crates/bin/webpage/): Simple cli that starts `service-webpage`
- [`lib/libservice`](./crates/lib/libservice): Provides the `Service` trait. A service is a group of http routes with an optional [`utoipa`] schema. \
This library decouples compiled binaries from the services they provide, and makes sure all services are self-contained.
- [`lib/page`](./crates/lib/page): Provides [PageServer], which builds an [`axum`] router that provides a caching and headers for resources served through http.
- Also provides [Servable], which is a trait for any resource that may be served.
- the [Page] servable serves html generated by a closure.
- the [StaticAsset] servable serves static assets (css, images, misc files), and provides transformation utilties for image assets (via [`pixel-transform`](./crates/lib/pixel-transform)).
- [`service/service-webpage`](./crates/service/service-webpage): A `Service` that runs a `PageServer` that provides the content on [betalupi.com](https://betalupi.com)

View File

@@ -113,9 +113,6 @@ pub fn page_wrapper<'a>(
title { (PreEscaped(meta.title.clone())) } title { (PreEscaped(meta.title.clone())) }
// Use a small blurred placeholder while full-size images load.
// Requires no other special scripts or css, just add some tags
// to your <img>!
script { script {
(PreEscaped(" (PreEscaped("
window.onload = function() { window.onload = function() {