Adding monk & robot page
This commit is contained in:
parent
32326f6d88
commit
7a3efc2716
6 changed files with 92 additions and 13 deletions
24
src/html/books.rs
Normal file
24
src/html/books.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
use axum::{
|
||||||
|
response::IntoResponse,
|
||||||
|
routing::{get, Router},
|
||||||
|
};
|
||||||
|
|
||||||
|
use super::templates::{
|
||||||
|
BooksTemplate, HtmlTemplate, MonkAndRobotTemplate,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn get_router() -> Router {
|
||||||
|
Router::new()
|
||||||
|
.route("/", get(books))
|
||||||
|
.route("/monk&robot", get(monk_robot))
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn books() -> impl IntoResponse {
|
||||||
|
let books_page = BooksTemplate {};
|
||||||
|
HtmlTemplate(books_page)
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn monk_robot() -> impl IntoResponse {
|
||||||
|
let monk_robot = MonkAndRobotTemplate {};
|
||||||
|
HtmlTemplate(monk_robot)
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,7 @@ use serde::Deserialize;
|
||||||
pub mod admin;
|
pub mod admin;
|
||||||
pub mod posts;
|
pub mod posts;
|
||||||
pub mod projects;
|
pub mod projects;
|
||||||
|
pub mod books;
|
||||||
pub mod root;
|
pub mod root;
|
||||||
pub mod templates;
|
pub mod templates;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,9 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
admin,
|
admin, books, posts::{self, get_articles_date_sorted}, projects, templates::{
|
||||||
posts::{self, get_articles_date_sorted},
|
AboutTemplate, AiTemplate, BlogrollTemplate, ContactTemplate, CookingTemplate, CreationTemplate, GiftsTemplate, HomeTemplate, HtmlTemplate, InterestsTemplate, LinksPageTemplate, LoginTemplate, MoneyTemplate, NowTemplate, ResumeTemplate, SignupTemplate, TechnologyTemplate, TimeTemplate, UsesTemplate, WorkTemplate
|
||||||
projects,
|
}
|
||||||
templates::{
|
|
||||||
AboutTemplate, AiTemplate, BlogrollTemplate, BooksTemplate, ContactTemplate, CookingTemplate, CreationTemplate, GiftsTemplate, HomeTemplate, HtmlTemplate, InterestsTemplate, LinksPageTemplate, LoginTemplate, MoneyTemplate, NowTemplate, ResumeTemplate, SignupTemplate, TechnologyTemplate, TimeTemplate, UsesTemplate, WorkTemplate
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn get_router(pool: PgPool) -> Router {
|
pub fn get_router(pool: PgPool) -> Router {
|
||||||
|
|
@ -39,6 +36,7 @@ pub fn get_router(pool: PgPool) -> Router {
|
||||||
Router::new()
|
Router::new()
|
||||||
.nest("/posts", posts::get_router())
|
.nest("/posts", posts::get_router())
|
||||||
.nest("/projects", projects::get_router())
|
.nest("/projects", projects::get_router())
|
||||||
|
.nest("/books", books::get_router())
|
||||||
.nest("/admin", admin::get_router())
|
.nest("/admin", admin::get_router())
|
||||||
.nest_service(
|
.nest_service(
|
||||||
"/assets",
|
"/assets",
|
||||||
|
|
@ -56,7 +54,6 @@ pub fn get_router(pool: PgPool) -> Router {
|
||||||
.route("/resume", get(resume))
|
.route("/resume", get(resume))
|
||||||
.route("/gifts", get(gifts))
|
.route("/gifts", get(gifts))
|
||||||
.route("/hire", get(work))
|
.route("/hire", get(work))
|
||||||
.route("/books", get(books))
|
|
||||||
.route("/time", get(time))
|
.route("/time", get(time))
|
||||||
.route("/cooking", get(cooking))
|
.route("/cooking", get(cooking))
|
||||||
.route("/creation", get(creation))
|
.route("/creation", get(creation))
|
||||||
|
|
@ -173,11 +170,6 @@ pub async fn get_signup() -> impl IntoResponse {
|
||||||
HtmlTemplate(SignupTemplate {})
|
HtmlTemplate(SignupTemplate {})
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn books() -> impl IntoResponse {
|
|
||||||
let books_page = BooksTemplate {};
|
|
||||||
HtmlTemplate(books_page)
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn time() -> impl IntoResponse {
|
async fn time() -> impl IntoResponse {
|
||||||
let time_page = TimeTemplate {};
|
let time_page = TimeTemplate {};
|
||||||
HtmlTemplate(time_page)
|
HtmlTemplate(time_page)
|
||||||
|
|
|
||||||
|
|
@ -162,3 +162,7 @@ pub struct AdminTemplate {}
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "money.html")]
|
#[template(path = "money.html")]
|
||||||
pub struct MoneyTemplate {}
|
pub struct MoneyTemplate {}
|
||||||
|
|
||||||
|
#[derive(Template)]
|
||||||
|
#[template(path = "monk&robot.html")]
|
||||||
|
pub struct MonkAndRobotTemplate {}
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,15 @@
|
||||||
|
|
||||||
<h4>Currently Reading</h4>
|
<h4>Currently Reading</h4>
|
||||||
<p>
|
<p>
|
||||||
A Prayer for the Crown Shy - Becky Chambers
|
Capitalism Vs Freedom - Rob Larson
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Hitchiker's Guide to the Galaxy - Douglas Adams
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>Read so far in 2025</h4>
|
<h4>Read so far in 2025</h4>
|
||||||
<ul class="no-bul">
|
<ul class="no-bul">
|
||||||
|
<li>A Prayer for the Crown Shy - Becky Chambers</li>
|
||||||
<li>Look to Windward - Ian M Banks</li>
|
<li>Look to Windward - Ian M Banks</li>
|
||||||
<li>Blood in the Machine - Brian Merchant</li>
|
<li>Blood in the Machine - Brian Merchant</li>
|
||||||
<li>A Psalm for the Wild Built - Becky Chambers</li>
|
<li>A Psalm for the Wild Built - Becky Chambers</li>
|
||||||
|
|
@ -53,6 +57,7 @@
|
||||||
|
|
||||||
<h4>Reflections from Books I have read</h4>
|
<h4>Reflections from Books I have read</h4>
|
||||||
<ul class="no-bul">
|
<ul class="no-bul">
|
||||||
|
<li><a href="/books/monk&robot">Monk & Robot series</a></li>
|
||||||
<li><a href="/posts/deepwork">Deep Work</a></li>
|
<li><a href="/posts/deepwork">Deep Work</a></li>
|
||||||
<li><a href="/posts/mfn">A Mind for Numbers</a></li>
|
<li><a href="/posts/mfn">A Mind for Numbers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
53
templates/monk&robot.html
Normal file
53
templates/monk&robot.html
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h2>Monk & Robot</h2>
|
||||||
|
<p>
|
||||||
|
I have recently finished reading the Monk & Robot books by Becky Chambers.
|
||||||
|
They were absolutly fantastic and I would advise anyone to read them.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The first book is <a href="https://www.otherscribbles.com/a-psalm-for-the-wild-built/"> A Psalm for the Wild Built</a>
|
||||||
|
and the second is <a href="https://www.otherscribbles.com/a-prayer-for-the-crown-shy/"> A Prayer for the Crown Shy</a>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
These are some of the happiest, most peaceful science fiction books that I have read in a long time.
|
||||||
|
Not that there is not challenge and conflict within them, but none that is unneccesary.
|
||||||
|
The books explore the idea of what we may need when all of our needs are taken care of.
|
||||||
|
All that could be provided for by society at least.
|
||||||
|
Everyone has food, shelter, community.
|
||||||
|
They are able to engage with what catches their interest, travel, explore, communicate to the level that they would like.
|
||||||
|
The world is idyllic in so many ways, but the larger questions of purpose and meaning are still present, which is the main focus.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
I find myself drawn to Solarpunk as the world (our world) seems to be filled with more and more negativity and sadness.
|
||||||
|
The escapism is not for adventure, glory, wars or battles.
|
||||||
|
But for a world where people care.
|
||||||
|
About eachother, about the world around them, about the objects that they use every day.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Just like being more financially secure in my life has allowed me to zoom out a bit, think in a larger scope and on longer terms,
|
||||||
|
having physical needs met allows the characters of the book to think more deeply about life.
|
||||||
|
When the worry is always survival there is no point in wasting time or energy worrying about deeper needs.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The world that Becky Chambers envisions here is bright, beautiful and caring.
|
||||||
|
As so many science fiction books explore possible future technologies, she explores a society and the internal landscape of its inhabitants.
|
||||||
|
It is a hopeful goal, something that I think we could aspire to create in our own world.
|
||||||
|
The technology does not seem massively advanced compared to what we have here, just that the mindset is fundamentally different.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
This mindset is what is attracting me to Solarpunk as a genre.
|
||||||
|
I have read the anthology "The Sunvault" in the past, and probably should again.
|
||||||
|
Not sure if it was the right time for me to resonate with those ideas.
|
||||||
|
I think it points the way for how we should try to progress as a society.
|
||||||
|
Use based production, living in harmony with the world and eachother.
|
||||||
|
The richness that we can produce used to heal the world and take care of eachother.
|
||||||
|
Valuing relationships, experiences, quality.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
It is a world that I would like to see come to pass, and they are some of my favourite books because they are so different.
|
||||||
|
I suspect that I will be reading them many times over, whenever I need a peaceful break from the world, or to envision a more hopeful future.
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Reference in a new issue