blob: 2d4d6c08836d53455ee0d42920f3bc259b396a32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
use super::blog::POSTS;
pub fn module(router: &mut windmark::router::Router) {
crate::route::track_mount(
router,
"/",
"This Gemini capsule's homepage",
move |context| {
crate::response::success(
&format!(
r"# Fuwn[.net]
I enjoy writing for archaic systems in dated languages and with artificially imposed constraints, all while aiming for peak performance and minimal design.
=> https://github.com/Fuwn Projects (GitHub)
## Recent Posts
{}
## Gemini
I write a lot of software and tooling for the Gemini protocol, the backbone of this site. You can learn more over at GemRest.
=> https://github.com/gemrest GemRest (GitHub)
=> /blog/technology/gemini More on Gemini
## Exploring
Don't know where to start? Check out The Directory or test your luck!
=> /directory The Directory
=> /random I'm Feeling Lucky",
{
(*POSTS).lock().map_or_else(
|_| "...".to_string(),
|global_posts| {
global_posts
.iter()
.take(3)
.map(|post| format!("=> {} {}", post.link(), post.title()))
.collect::<Vec<String>>()
.join("\n")
},
)
}
),
&context,
)
},
);
}
|