aboutsummaryrefslogtreecommitdiff
path: root/dhall/types
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 /dhall/types
parentb96a44649a5cdf7609ebdc975a118c01cbd74b1a (diff)
downloadxesite-351069d9f91edab96425bcd221858529acb7e08a.tar.xz
xesite-351069d9f91edab96425bcd221858529acb7e08a.zip
implement pronouns support
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'dhall/types')
-rw-r--r--dhall/types/Author.dhall40
-rw-r--r--dhall/types/Config.dhall6
-rw-r--r--dhall/types/PronounSet.dhall17
-rw-r--r--dhall/types/package.dhall1
4 files changed, 44 insertions, 20 deletions
diff --git a/dhall/types/Author.dhall b/dhall/types/Author.dhall
index 79cab6c..47a850f 100644
--- a/dhall/types/Author.dhall
+++ b/dhall/types/Author.dhall
@@ -1,19 +1,23 @@
-{ Type =
- { name : Text
- , handle : Text
- , image : Optional Text
- , url : Optional Text
- , sameAs : List Text
- , jobTitle : Text
- , inSystem : Bool
+let PronounSet = ./PronounSet.dhall
+
+in { Type =
+ { name : Text
+ , handle : Text
+ , image : Optional Text
+ , url : Optional Text
+ , sameAs : List Text
+ , jobTitle : Text
+ , inSystem : Bool
+ , pronouns : PronounSet.Type
+ }
+ , default =
+ { name = ""
+ , handle = ""
+ , image = None Text
+ , url = None Text
+ , sameAs = [] : List Text
+ , jobTitle = ""
+ , inSystem = False
+ , pronouns = ../pronouns/she.dhall
+ }
}
-, default =
- { name = ""
- , handle = ""
- , image = None Text
- , url = None Text
- , sameAs = [] : List Text
- , jobTitle = ""
- , inSystem = False
- }
-}
diff --git a/dhall/types/Config.dhall b/dhall/types/Config.dhall
index 914c89a..245c645 100644
--- a/dhall/types/Config.dhall
+++ b/dhall/types/Config.dhall
@@ -10,6 +10,8 @@ let NagMessage = ./NagMessage.dhall
let SeriesDescription = ./SeriesDescription.dhall
+let PronounSet = ./PronounSet.dhall
+
let Prelude = ../Prelude.dhall
let defaultPort = env:PORT ? 3030
@@ -24,7 +26,6 @@ in { Type =
, authors : Prelude.Map.Type Text Author.Type
, port : Natural
, clackSet : List Text
- , resumeFname : Text
, webMentionEndpoint : Text
, miToken : Text
, jobHistory : List Job.Type
@@ -32,6 +33,7 @@ in { Type =
, seriesDescMap : Prelude.Map.Type Text Text
, notableProjects : List Link.Type
, contactLinks : List Link.Type
+ , pronouns : List PronounSet.Type
}
, default =
{ signalboost = [] : List Person.Type
@@ -39,7 +41,6 @@ in { Type =
, authors = [] : List Author.Type
, port = defaultPort
, clackSet = [ "Ashlynn" ]
- , resumeFname = "./static/resume/resume.md"
, webMentionEndpoint = defaultWebMentionEndpoint
, miToken = "${env:MI_TOKEN as Text ? ""}"
, jobHistory = [] : List Job.Type
@@ -47,5 +48,6 @@ in { Type =
, seriesDescMap = [] : Prelude.Map.Type Text Text
, notableProjects = [] : List Link.Type
, contactLinks = [] : List Link.Type
+ , pronouns = [] : List PronounSet.Type
}
}
diff --git a/dhall/types/PronounSet.dhall b/dhall/types/PronounSet.dhall
new file mode 100644
index 0000000..13384b3
--- /dev/null
+++ b/dhall/types/PronounSet.dhall
@@ -0,0 +1,17 @@
+{ Type =
+ { nominative : Text
+ , accusative : Text
+ , possessiveDeterminer : Text
+ , possessive : Text
+ , reflexive : Text
+ , singular : Bool
+ }
+, default =
+ { nominative = "xe"
+ , accusative = "xer"
+ , possessiveDeterminer = "xer"
+ , possessive = "xers"
+ , reflexive = "xerself"
+ , singular = True
+ }
+}
diff --git a/dhall/types/package.dhall b/dhall/types/package.dhall
index 4f4166e..4226d77 100644
--- a/dhall/types/package.dhall
+++ b/dhall/types/package.dhall
@@ -6,6 +6,7 @@
, Location = ./Location.dhall
, NagMessage = ./NagMessage.dhall
, Person = ./Person.dhall
+, PronounSet = ./PronounSet.dhall
, Resume = ./Resume.dhall
, Salary = ./Salary.dhall
, SeriesDescription = ./SeriesDescription.dhall