aboutsummaryrefslogtreecommitdiff
path: root/config.dhall
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-07-07 21:18:02 -0400
committerChristine Dodrill <me@christine.website>2021-07-07 21:18:02 -0400
commit79c52388170747ebc812bcb4954b5badd8cbc2a4 (patch)
treeb05dc8096a1748130efee3db47280512686128af /config.dhall
parenta716286f375a7b7cd998ce4455fac3da116edade (diff)
downloadxesite-79c52388170747ebc812bcb4954b5badd8cbc2a4.tar.xz
xesite-79c52388170747ebc812bcb4954b5badd8cbc2a4.zip
start mutliple author support
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'config.dhall')
-rw-r--r--config.dhall53
1 files changed, 52 insertions, 1 deletions
diff --git a/config.dhall b/config.dhall
index 9ca7af8..70d4a86 100644
--- a/config.dhall
+++ b/config.dhall
@@ -4,6 +4,27 @@ let Person =
{ name = "", tags = [] : List Text, gitLink = "", twitter = "" }
}
+let Author =
+ { Type =
+ { name : Text
+ , handle : Text
+ , picUrl : Optional Text
+ , link : Optional Text
+ , twitter : Optional Text
+ , default : Bool
+ , inSystem : Bool
+ }
+ , default =
+ { name = ""
+ , handle = ""
+ , picUrl = None Text
+ , link = None Text
+ , twitter = None Text
+ , default = False
+ , inSystem = True
+ }
+ }
+
let defaultPort = env:PORT ? 3030
let defaultWebMentionEndpoint =
@@ -13,6 +34,7 @@ let defaultWebMentionEndpoint =
let Config =
{ Type =
{ signalboost : List Person.Type
+ , authors : List Author.Type
, port : Natural
, clackSet : List Text
, resumeFname : Text
@@ -21,6 +43,34 @@ let Config =
}
, default =
{ signalboost = [] : List Person.Type
+ , authors =
+ [ Author::{
+ , name = "Xe"
+ , handle = "xe"
+ , picUrl = Some "/static/img/avatar.png"
+ , link = Some "https://christine.website"
+ , twitter = Some "theprincessxena"
+ , default = True
+ , inSystem = True
+ }
+ , Author::{
+ , name = "Ashe"
+ , handle = "ectamorphic"
+ , picUrl = None Text
+ , link = None Text
+ , twitter = None Text
+ , inSystem = True
+ }
+ , Author::{
+ , name = "Jessie"
+ , handle = "Heartmender"
+ , picUrl = Some
+ "https://cdn.christine.website/file/christine-static/img/UPRcp1pO_400x400.jpg"
+ , link = Some "https://heartmender.writeas.com"
+ , twitter = Some "BeJustFine"
+ , inSystem = True
+ }
+ ]
, port = defaultPort
, clackSet = [ "Ashlynn" ]
, resumeFname = "./static/resume/resume.md"
@@ -31,5 +81,6 @@ let Config =
in Config::{
, signalboost = ./signalboost.dhall
- , clackSet = [ "Ashlynn", "Terry Davis", "Dennis Ritchie" ]
+ , clackSet =
+ [ "Ashlynn", "Terry Davis", "Dennis Ritchie", "Steven Hawking" ]
}