forked from lavender-legacy/lavender.software
Add miles to webring, remove members section of homepage, add Hermes
This commit is contained in:
parent
74885b0410
commit
a231108b9c
3 changed files with 8 additions and 58 deletions
|
@ -1,59 +1,13 @@
|
|||
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)]
|
||||
#[template(path = "main_page.html.j2")]
|
||||
struct MainPageTemplate {
|
||||
members: Vec<Member>,
|
||||
}
|
||||
struct MainPageTemplate {}
|
||||
|
||||
pub fn main_page(ctx: &BuildContext) -> Result<()> {
|
||||
log_info("Rendering main page…");
|
||||
|
||||
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()?,
|
||||
)?;
|
||||
ctx.write("index.html", MainPageTemplate {}.render()?)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
"name": "charlotte",
|
||||
"url": "https://char.lt/"
|
||||
},
|
||||
{
|
||||
"id": "milse113",
|
||||
"name": "milse113",
|
||||
"url": "https://milse113.github.io/lavender/"
|
||||
},
|
||||
{
|
||||
"id": "mira",
|
||||
"name": "mira",
|
||||
|
|
|
@ -27,20 +27,11 @@
|
|||
<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>catsette <em>(upcoming)</em> - an independent music marketplace platform for artists</li>
|
||||
<li>Hermes <em>(upcoming)</em> - a native <a class="https://scuttlebutt.nz/">Secure Scuttlebutt</a> client for Linux</li>
|
||||
<li>… and more soon!</li>
|
||||
</ul>
|
||||
</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>
|
||||
<h2>services</h2>
|
||||
|
||||
|
|
Loading…
Reference in a new issue