aboutsummaryrefslogtreecommitdiff
path: root/src/tmpl/mod.rs
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2023-01-04 14:37:22 -0500
committerXe Iaso <me@christine.website>2023-01-04 14:37:22 -0500
commit351069d9f91edab96425bcd221858529acb7e08a (patch)
tree8d601372b5e67e6f129ff896204cdc97a49d8f3d /src/tmpl/mod.rs
parentb96a44649a5cdf7609ebdc975a118c01cbd74b1a (diff)
downloadxesite-351069d9f91edab96425bcd221858529acb7e08a.tar.xz
xesite-351069d9f91edab96425bcd221858529acb7e08a.zip
implement pronouns support
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'src/tmpl/mod.rs')
-rw-r--r--src/tmpl/mod.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tmpl/mod.rs b/src/tmpl/mod.rs
index 1fbb239..2ad62c0 100644
--- a/src/tmpl/mod.rs
+++ b/src/tmpl/mod.rs
@@ -582,3 +582,27 @@ fn salary_history(jobs: &Vec<Job>) -> Markup {
}
}
}
+
+pub fn pronoun_page(pronouns: &Vec<PronounSet>) -> Markup {
+ base(
+ Some("Pronouns"),
+ None,
+ html! {
+ h1 {"Pronouns"}
+ p {"This page lists the pronouns you should use for me. Please try to use one of these sets:"}
+ .grid {
+ @for ps in pronouns {
+ .card.cell."-4of12" {
+ (ps)
+ }
+ }
+ }
+
+ (xesite_templates::conv("Mara".to_string(), "happy".to_string(), html!{
+ "You can access this data with "
+ a href="/api/pronouns" {"an API call"}
+ " too!"
+ }))
+ },
+ )
+}