Compare commits
No commits in common. "817dbf5e6a05068b83b61cea8fc03afc280d34dd" and "5159eeeea47d83745a8a940b31a123f6d34d6d34" have entirely different histories.
817dbf5e6a
...
5159eeeea4
5 changed files with 4 additions and 57 deletions
|
|
@ -11,7 +11,7 @@ pub mod article;
|
|||
pub mod link;
|
||||
|
||||
pub async fn establish_connection() -> Result<PgPool, Box<dyn Error>> {
|
||||
let db_url = match env::var("ACHUBB_DATABASE_URL") {
|
||||
let db_url = match env::var("DATABASE_URL") {
|
||||
Ok(s) => s,
|
||||
Err(_) => panic!("No database environment variable set"),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,12 +6,10 @@ use axum::{
|
|||
use super::templates::{
|
||||
ArchServerTemplate,
|
||||
BooksTemplate,
|
||||
CookingTemplate,
|
||||
EdgeDetectionTemplate,
|
||||
GardenTemplate,
|
||||
HtmlTemplate,
|
||||
TakTemplate,
|
||||
TimeTemplate,
|
||||
TakTemplate, TimeTemplate,
|
||||
};
|
||||
|
||||
pub fn get_router() -> Router {
|
||||
|
|
@ -22,7 +20,6 @@ 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 {
|
||||
|
|
@ -54,8 +51,3 @@ 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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,10 +116,6 @@ 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 {
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
<!-- 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 %}
|
||||
|
|
@ -85,7 +85,4 @@
|
|||
<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 %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue