diff options
author | Starscouts <starscouts@equestria.dev> | 2024-07-28 11:15:18 +0200 |
---|---|---|
committer | Starscouts <starscouts@equestria.dev> | 2024-07-28 11:15:18 +0200 |
commit | e46803641a1b52bc367e6ab2b63b6f21e4b37f3f (patch) | |
tree | 2378706ef30858305379e4fadf978640645283c3 | |
parent | 8f500b741bb2a94b35ab285d0339b8183c80af54 (diff) | |
download | violette-mane.tar.gz violette-mane.tar.bz2 violette-mane.zip |
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/html.rs | 10 | ||||
-rw-r--r-- | src/main.rs | 3 | ||||
-rw-r--r-- | vercel.json | 10 |
4 files changed, 18 insertions, 7 deletions
@@ -1,6 +1,6 @@ [package] name = "violette" -version = "2.1.1" +version = "2.1.2" edition = "2021" [dependencies] diff --git a/src/html.rs b/src/html.rs index 12fdab1..82580c6 100644 --- a/src/html.rs +++ b/src/html.rs @@ -14,7 +14,7 @@ pub fn generate_template(data: Vec<serde_json::Value>) -> Markup { meta http-equiv="X-UA-Compatible" content="ie=edge"; title { "The Starscouts" }; - meta name="description" content=(format!("Formerly known as Raindrops · Hi there! We are the Starscouts. We are a plural system of {} creatures. We use she/her pronouns. Learn more about us.", data.len())); + meta name="description" content=(format!("Formerly known as Raindrops · Hi there! We are the Starscouts. We are a plural system of {} creatures. We use she/her pronouns. Learn more about us.", data.len() - 1)); link rel="icon" href="https://cdn.equestria.dev/pluralkit/gdapd/avatar.png" type="image/png"; link rel="stylesheet" href="/assets/bootstrap.min.css"; @@ -149,7 +149,7 @@ pub fn generate_template(data: Vec<serde_json::Value>) -> Markup { p { "Formerly known as Raindrops · We are a plural system of " - (data.len()) + (data.len() - 1) " creatures. We use " b { "she/her" } " pronouns." @@ -233,7 +233,7 @@ pub fn generate_template(data: Vec<serde_json::Value>) -> Markup { div style="display: flex; align-items: center;" { div { a href="https://equestria.dev" target="_blank" class="link" tabindex="0" { - img alt="Equestria.dev" aria-label="Equestria.dev" src="https://cdn.equestria.dev/starshine/brand/wordmark/dark/wordmarkdark.svg" style="height: 42px;" loading="lazy"; + img alt="Equestria.dev" aria-label="Equestria.dev" src="https://equestria.dev/assets/brand/wordmark/dark/wordmarkdark.svg" style="height: 42px;" loading="lazy"; } } } @@ -334,8 +334,8 @@ pub fn generate_template(data: Vec<serde_json::Value>) -> Markup { div class="modal-body" { p { "This website is open-source software. The source code used for running it is available on Equestria.dev's GitLab instance: " - a href="https://source.equestria.dev/equestria.dev/violette" target="_blank" { - "https://source.equestria.dev/equestria.dev/violette" + a href="https://github.com/equestria-dev/violette" target="_blank" { + "https://github.com/equestria-dev/violette" } "." } diff --git a/src/main.rs b/src/main.rs index fe6b60c..d52685a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,8 @@ fn main() { let data: Vec<serde_json::Value> = ureq::get("https://api.pluralkit.me/v2/systems/gdapd/members") .call().unwrap() .into_json().unwrap(); - info!("Request completed, found {} system members", data.len()); + // We ignore the "Unknown" member + info!("Request completed, found {} system members", data.len() - 1); if Path::new(&output_path).exists() { warn!("Found an older build, proceeding to delete it"); diff --git a/vercel.json b/vercel.json index 65024a4..e9661f3 100644 --- a/vercel.json +++ b/vercel.json @@ -9,6 +9,16 @@ "destination": "/assets/$1" } ], + "redirects": [ + { + "source": "/.well-known/security.txt", + "destination": "https://equestria.dev/security.txt" + }, + { + "source": "/security.txt", + "destination": "https://equestria.dev/security.txt" + } + ], "headers": [ { "source": "/assets/(.*)", |