Compare commits
No commits in common. "main" and "main" have entirely different histories.
|
@ -1,13 +1,59 @@
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
|
struct Member {
|
||||||
|
name: String,
|
||||||
|
website: String,
|
||||||
|
title: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl From<&(&str, &str, &str)> for Member {
|
||||||
|
fn from(tuple: &(&str, &str, &str)) -> Self {
|
||||||
|
Member {
|
||||||
|
name: tuple.0.to_string(),
|
||||||
|
website: tuple.1.to_string(),
|
||||||
|
title: tuple.2.to_string(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "main_page.html.j2")]
|
#[template(path = "main_page.html.j2")]
|
||||||
struct MainPageTemplate {}
|
struct MainPageTemplate {
|
||||||
|
members: Vec<Member>,
|
||||||
|
}
|
||||||
|
|
||||||
pub fn main_page(ctx: &BuildContext) -> Result<()> {
|
pub fn main_page(ctx: &BuildContext) -> Result<()> {
|
||||||
log_info("Rendering main page…");
|
log_info("Rendering main page…");
|
||||||
|
|
||||||
ctx.write("index.html", MainPageTemplate {}.render()?)?;
|
let members = [
|
||||||
|
("charlotte som", "https://char.lt/", "founder"),
|
||||||
|
(
|
||||||
|
"agatha lovelace",
|
||||||
|
"https://technogothic.net/",
|
||||||
|
"vampy wolfy",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"annie versario",
|
||||||
|
"https://versary.town",
|
||||||
|
"marquee technician",
|
||||||
|
),
|
||||||
|
("ella paws", "#", "8fde7b6ef7c84fc295ba"),
|
||||||
|
(
|
||||||
|
"maia arson crimew",
|
||||||
|
"https://maia.crimew.gay/",
|
||||||
|
"tiny kitten",
|
||||||
|
),
|
||||||
|
("easrng", "https://easrng.net/", "cursed code contributor"),
|
||||||
|
("luna nova", "https://luna.mint.lgbt", "local anime catgirl/ruby enthusiast"),
|
||||||
|
];
|
||||||
|
|
||||||
|
ctx.write(
|
||||||
|
"index.html",
|
||||||
|
MainPageTemplate {
|
||||||
|
members: members.iter().map(|x| x.into()).collect(),
|
||||||
|
}
|
||||||
|
.render()?,
|
||||||
|
)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,11 +9,6 @@
|
||||||
"name": "charlotte",
|
"name": "charlotte",
|
||||||
"url": "https://char.lt/"
|
"url": "https://char.lt/"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "milse113",
|
|
||||||
"name": "milse113",
|
|
||||||
"url": "https://milse113.github.io/lavender.html"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "mira",
|
"id": "mira",
|
||||||
"name": "mira",
|
"name": "mira",
|
||||||
|
|
|
@ -27,11 +27,20 @@
|
||||||
<li><a href="https://git.lain.faith/videogame-hacker/discord-css-injector">lavender cord</a> - a theming platform for Discord</li>
|
<li><a href="https://git.lain.faith/videogame-hacker/discord-css-injector">lavender cord</a> - a theming platform for Discord</li>
|
||||||
<li><a href="https://git.lavender.software/lavender/watch-party">watch-party</a> - a webapp to allow for synced video playback among friends</li>
|
<li><a href="https://git.lavender.software/lavender/watch-party">watch-party</a> - a webapp to allow for synced video playback among friends</li>
|
||||||
<li>catsette <em>(upcoming)</em> - an independent music marketplace platform for artists</li>
|
<li>catsette <em>(upcoming)</em> - an independent music marketplace platform for artists</li>
|
||||||
<li>Hermes <em>(upcoming)</em> - a native <a href="https://scuttlebutt.nz/">Secure Scuttlebutt</a> client for Linux</li>
|
|
||||||
<li>… and more soon!</li>
|
<li>… and more soon!</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2>members</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for member in members %}
|
||||||
|
<li><a href="{{ member.website }}">{{ member.name }}</a> – {{ member.title }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>services</h2>
|
<h2>services</h2>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue