Adding cooking page

This commit is contained in:
Awstin 2024-09-15 11:45:13 -04:00
parent 5159eeeea4
commit e5bb485c14
4 changed files with 56 additions and 3 deletions

View file

@ -6,10 +6,12 @@ use axum::{
use super::templates::{
ArchServerTemplate,
BooksTemplate,
CookingTemplate,
EdgeDetectionTemplate,
GardenTemplate,
HtmlTemplate,
TakTemplate, TimeTemplate,
TakTemplate,
TimeTemplate,
};
pub fn get_router() -> Router {
@ -20,6 +22,7 @@ pub fn get_router() -> Router {
.route("/time", get(time))
.route("/tak", get(tak))
.route("/archserver", get(arch_server))
.route("/cooking", get(cooking))
}
async fn garden() -> impl IntoResponse {
@ -51,3 +54,8 @@ async fn arch_server() -> impl IntoResponse {
let arch_server_page = ArchServerTemplate {};
HtmlTemplate(arch_server_page)
}
async fn cooking() -> impl IntoResponse {
let cooking_page = CookingTemplate {};
HtmlTemplate(cooking_page)
}

View file

@ -116,6 +116,10 @@ pub struct HomeTemplate {}
#[template(path = "about.html")]
pub struct AboutTemplate {}
#[derive(Template)]
#[template(path = "cooking.html")]
pub struct CookingTemplate {}
#[derive(Template)]
#[template(path = "blog_footer.html")]
pub struct BlogFooterTemplate {

38
templates/cooking.html Normal file
View file

@ -0,0 +1,38 @@
<!-- prettier-ignore -->
{% extends "base.html" %}
{% block content %}
<h2>Cooking</h2>
<p>
I love to cook.
When I have the time for it.
Cooking is one of those primal sensual things that should not be rushed.
Like lovemaking, art, theater.
It takes the time it takes and trying to force it to take less is a recipe for frustration and disaster.
</p>
<p>
There is little more vital that we do for ourselves and for those we care for then nourishment.
Having someone else to cook for and share the results with makes the experience exponentially more enjoyable and fulfilling.
</p>
<p>
I still mostly follow recipes.
I have not yet developed the imagination to blend ingredients and see what they would taste like together in my mind.
I do make some small tweaks but the general idea is usually a recipe that I have found somewhere.
The care comes in how each step is carried out.
The chopping, making a sauce, getting just the right texture.
</p>
<p>
It is an activity that I find forces presence like few others.
Some can cook with the television on.
I have tried that but it does not work.
My attention can't be divided.
Also being worried about chopping your finger off is a pretty good reason to focus.
Have caught a piece of finger only once in my years in the kitchen and learned that lesson well.
At most some music, and even then best not with lyrics.
</p>
<p>
As most recipe sites are pretty terrible I plan to add some of my favourites here in an easily consumable format.
No long story, just ingredients and instructions as I would like to see them with no extraneous stuff.
Next step for this page.
</p>
{% endblock %}

View file

@ -85,4 +85,7 @@
<p>
It is what I am making this site to be a part of.
</p>
<h2><a href="/garden/books">Reading</h2>
<h2><a href="/garden/cooking">Cooking</h2>
{% endblock %}