Add handler and template for list page, along with basic content

This commit is contained in:
glyph 2020-05-09 19:32:18 +01:00
parent 79dc449f1e
commit 2d8501d616
4 changed files with 49 additions and 5 deletions

View File

@ -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();

View File

@ -2,7 +2,7 @@
{% block content %}
<h2>Background</h2>
<hr>
<p>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 <a href="https://www.gvsu.edu/">Grand Valley State University</a>. I later returned to South Africa and completed a Master of Social Science in social anthropology at the <a href="http://www.uct.ac.za/">University of Cape Town</a>, with <a href="https://open.uct.ac.za/handle/11427/6795">research focused on decentralised networks of medicinal plant harvesters and herbalists</a> (Rasta bush doctors). I then went on to work as an applied anthropologist and ethnobotanist in the non-profit sector.</p>
<p>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 <a href="https://harmonicmycology.com">Harmonic Mycology</a>, 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, <a href="https://opencollective.com/peachcloud">PeachCloud</a>.</p>
<p>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 ⛩ .</p>
<p>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 <a href="https://www.gvsu.edu/">Grand Valley State University</a>. I later returned to South Africa and completed a Master of Social Science in social anthropology at the <a href="http://www.uct.ac.za/">University of Cape Town</a>, with <a href="https://open.uct.ac.za/handle/11427/6795">research</a> 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.</p>
<p>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 <a href="https://harmonicmycology.com">Harmonic Mycology</a>, 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, <a href="https://opencollective.com/peachcloud">PeachCloud</a>.</p>
<p>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 ⛩.</p>
{%- endblock %}

35
templates/lists.html.tera Normal file
View File

@ -0,0 +1,35 @@
{% extends "nav" %}
{% block content %}
<h2>Lists</h2>
<hr>
<h3>Books</h3>
<p>Currently Reading</p>
<ul>
<li><i>Red Moon</i> - Kim Stanley Robinson</li>
<li><i>Radical Mycology</i> - Peter McCoy</li>
<li><i>Jonathan Strange & Mr Norrell</i> - Susanna Clarke</li>
</ul>
<p>Previously Read</p>
<ul>
<li><i>Mythago Wood</i> - Robert Holdstock</li>
<li><i>The Name of the Wind</i> - Patrick Rothfuss</li>
</ul>
<p>Wishlist</p>
<ul>
<li><i>A Closed and Common Orbit</i> - Becky Chambers</li>
<li><i>The Mushroom at the End of the World</i> - Anna Lowenhaupt Tsing</li>
</ul>
<h3>Newsletters</h3>
<p>Currently Reading</p>
<ul>
<li><a href="https://cscottmills.com/polylith/" title="Polylith newsletter"><i>Polylith</i></a> - C.S.Mills</li>
<li><a href="http://tinyletter.com/tchoi8" title="Taeyoon's newsletter"><i>Taeyoon's newsletter</i></a> - Taeyoon Choi</li>
<li><a href="https://craigmod.com/ridgeline/" title="Ridgeline newsletter"><i>Ridgeline</i></a> - Craig Mod</li>
</ul>
<h3>Podcasts</h3>
<p>Currently Listening</p>
<ul>
<li><a href="https://www.indefenseofplants.com/podcast" title="In Defense of Plants podcast"><i>In Defense of Plants</i></a> - Matt</li>
<li><a href="https://www.happinesslab.fm/" title="The Happiness Lab podcast"><i>The Happiness Lab</i></a> - Dr Laurie Santos</li>
</ul>
{%- endblock %}

View File

@ -9,7 +9,7 @@
<li class="nav-item"><a href="">drawing</a></li>
<li class="nav-item"><a href="">fermentation</a></li>
<li class="nav-item"><a href="">language</a></li>
<li class="nav-item"><a href="">lists</a></li>
<li class="nav-item"><a href="/lists">lists</a></li>
<li class="nav-item"><a href="">movement</a></li>
<li class="nav-item"><a href="">mycology</a></li>
<li class="nav-item"><a href="">travel</a></li>