From 2d8501d616b03edbd74b5c38fa5aa6bc1140415f Mon Sep 17 00:00:00 2001 From: glyph Date: Sat, 9 May 2020 19:32:18 +0100 Subject: [PATCH] Add handler and template for list page, along with basic content --- src/main.rs | 11 ++++++++++- templates/background.html.tera | 6 +++--- templates/lists.html.tera | 35 ++++++++++++++++++++++++++++++++++ templates/nav.html.tera | 2 +- 4 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 templates/lists.html.tera diff --git a/src/main.rs b/src/main.rs index ab62962..1a892fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,6 +43,15 @@ fn background() -> Template { Template::render("background", &context) } +#[get("/lists")] +fn lists() -> Template { + let context = FlashContext { + flash_name: None, + flash_msg: None, + }; + Template::render("lists", &context) +} + #[catch(404)] fn not_found() -> Template { debug!("404 Page Not Found"); @@ -55,7 +64,7 @@ fn not_found() -> Template { fn main() { rocket::ignite() - .mount("/", routes![files, index, background]) + .mount("/", routes![files, index, background, lists]) .register(catchers![not_found]) .attach(Template::fairing()) .launch(); diff --git a/templates/background.html.tera b/templates/background.html.tera index 436afae..7b4cf32 100644 --- a/templates/background.html.tera +++ b/templates/background.html.tera @@ -2,7 +2,7 @@ {% block content %}

Background


-

I was born and raised in the coastal city of Durban, South Africa, which lies between the Indian Ocean and Drakensberg Mountains. Following completion of high school I moved to Michigan, USA and completed a Bachelor of Science in anthropology (major) and biology (minor) at Grand Valley State University. I later returned to South Africa and completed a Master of Social Science in social anthropology at the University of Cape Town, with research focused on decentralised networks of medicinal plant harvesters and herbalists (Rasta bush doctors). I then went on to work as an applied anthropologist and ethnobotanist in the non-profit sector.

-

Following a year spent travelling in South America, I restructured my livelihood and life around my core interests: carbon-based and silicon-based technologies (biology and computers). Since then I have founded Harmonic Mycology, a mycology collective dedicated to developing and distributing mycelial medicines, teaching mushroom cultivation and encouraging the formation of humyn-fungal networks. In parallel to those activities, I have worked as an autodidactic software developer on private and open-source projects; most-recently, PeachCloud.

-

I hold a deep fascination with the processes through which humyns form relationships with other living beings. When not behind the keyboard, you can find me looking at mushrooms, riding my bicycle or reading sci-fi. I'm dreaming of a three-month adventure across Japan ⛩ .

+

I was born and raised in the coastal city of Durban, South Africa, which lies between the Indian Ocean and Drakensberg Mountains. Following completion of high school I moved to Michigan, USA and completed a Bachelor of Science in anthropology (major) and biology (minor) at Grand Valley State University. I later returned to South Africa and completed a Master of Social Science in social anthropology at the University of Cape Town, with research focused on decentralised networks of medicinal plant harvesters and herbalists (Rasta bush doctors). I then went on to work as an applied anthropologist and ethnobotanist in the non-profit sector.

+

Following a year spent travelling in South America, I restructured my life and livelihood around my core interests: carbon-based and silicon-based technologies (biology and computers). Since then I have founded Harmonic Mycology, a mycology collective dedicated to developing and distributing mycelial medicines, teaching mushroom cultivation and encouraging the formation of humyn-fungal networks. In parallel to those activities, I have worked as an autodidactic software developer on private and open-source projects; most-recently, PeachCloud.

+

I hold a deep fascination with the processes through which humyns form relationships with other living beings. When not behind the keyboard, you can find me looking at mushrooms, riding my bicycle or reading sci-fi. I'm dreaming of a three-month adventure across Japan ⛩.

{%- endblock %} diff --git a/templates/lists.html.tera b/templates/lists.html.tera new file mode 100644 index 0000000..f024e33 --- /dev/null +++ b/templates/lists.html.tera @@ -0,0 +1,35 @@ +{% extends "nav" %} +{% block content %} +

Lists

+
+

Books

+

Currently Reading

+ +

Previously Read

+ +

Wishlist

+ +

Newsletters

+

Currently Reading

+ +

Podcasts

+

Currently Listening

+ +{%- endblock %} diff --git a/templates/nav.html.tera b/templates/nav.html.tera index 01869a0..9005181 100644 --- a/templates/nav.html.tera +++ b/templates/nav.html.tera @@ -9,7 +9,7 @@ - +