Skip to content

Commit 8fd13f6

Browse files
committed
in
1 parent 4dd6dc4 commit 8fd13f6

5 files changed

Lines changed: 27 additions & 10 deletions

File tree

‎include/in.txt‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
✨ 🚀 I’ve decided to pivot away from traditional social platforms to double down on real-world impact and high-leverage offline synergies.
2+
3+
BRR...translating...
4+
5+
I don't use LinkedIn.
6+
I'm a full-stack software engineer. History of product ownership. Looking for roles right now!
7+
8+
See my CV (malted.dev/cv) for my professional history.
9+
Contact me at malted@malted.dev.
10+
11+
Are you a recruiter? Pick a conversation starter for when we call;
12+
13+
- The time I drove across the U.S. in 3 days
14+
- The time when I was invited to talk at the U.S. capitol
15+
- What I'm building in my spare time right now

‎src/main.rs‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use url::Url;
99

1010
use crate::base::location::LOCATION_STATE;
1111
use crate::base::music::SongInfo;
12-
use crate::pages::cv;
1312

1413
mod api;
1514
mod base;
@@ -65,8 +64,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
6564
"location" => crate::base::location::location(request),
6665
"api" => api::api(request),
6766
"foo" => foo(request),
68-
"linkedin" => linkedin(request),
69-
"cv" => crate::cv::cv(request),
67+
"linkedin" => crate::pages::linkedin::linkedin(request),
68+
"cv" => crate::pages::cv::cv(request),
7069
_ => root(request, state_clone),
7170
}
7271
});
@@ -98,12 +97,6 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
9897
paper_page(request, "FOO", body, None);
9998
}
10099

101-
fn linkedin(request: Request) {
102-
let body = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
103-
104-
paper_page(request, "LINKEDIN", body, None);
105-
}
106-
107100
fn root(request: Request, state: Arc<RwLock<State>>) {
108101
let user_agent: Option<String> = request
109102
.headers()

‎src/pages/cv.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use typst_as_lib::typst_kit_options::TypstKitFontOptions;
55

66
static CV_SRC_FILE: &str = include_str!("../../include/cv.typ");
77
static FONTS: &[&[u8]] = &[
8-
include_bytes!("../../include/NewCM10-Regular.otf"),
98
include_bytes!("../../include/fonts/NewCM08-Book.otf"),
109
include_bytes!("../../include/fonts/NewCM08-BookItalic.otf"),
1110
include_bytes!("../../include/fonts/NewCM10-Bold.otf"),
11+
include_bytes!("../../include/fonts/NewCM10-BoldItalic.otf"),
1212
];
1313

1414
pub struct PdfResponse(Vec<u8>);

‎src/pages/linkedin.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use crate::paper_page;
2+
use tiny_http::Request;
3+
4+
static BODY: &str = include_str!("../../include/in.txt");
5+
6+
pub fn linkedin(request: Request) {
7+
paper_page(request, "I really don't like LinkedIn", BODY, None);
8+
}

‎src/pages/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pub mod cv;
2+
pub mod linkedin;

0 commit comments

Comments
 (0)