diff --git a/build_src/main_page.rs b/build_src/main_page.rs index f0bfcfa..ac13616 100644 --- a/build_src/main_page.rs +++ b/build_src/main_page.rs @@ -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, -} +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(()) } diff --git a/src/webring/data.json b/src/webring/data.json index 44b041a..b611567 100644 --- a/src/webring/data.json +++ b/src/webring/data.json @@ -9,6 +9,11 @@ "name": "charlotte", "url": "https://char.lt/" }, + { + "id": "milse113", + "name": "milse113", + "url": "https://milse113.github.io/lavender/" + }, { "id": "mira", "name": "mira", diff --git a/templates/main_page.html.j2 b/templates/main_page.html.j2 index 75c4b52..5a7d725 100644 --- a/templates/main_page.html.j2 +++ b/templates/main_page.html.j2 @@ -27,20 +27,11 @@
  • lavender cord - a theming platform for Discord
  • watch-party - a webapp to allow for synced video playback among friends
  • catsette (upcoming) - an independent music marketplace platform for artists
  • +
  • Hermes (upcoming) - a native Secure Scuttlebutt client for Linux
  • … and more soon!
  • -
    -

    members

    - - -
    -

    services