The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

signalboost: add entry for ~ajhalili2006 (#567)

* signalboost: add entry for ~ajhalili2006

Also in this commit:
* Add linkedin and cover_letter (per https://github.com/Xe/site/pull/550#discussion_r1019824691) anmong other things,
including adding fediverse and website fields
* Update the signalboost.rs HTML template to reflect
these changes to Person.dhall types
* Fix compilation

In the future it would be nice if you ran the test suite. You can get to
a development environment with `nix develop` or by installing direnv and
running `direnv allow`. Alternatively you can do a full build with `nix
build`.

Updating the dhall type isn't enough to make the rust code automagically
be updated too. You need to also update the corresponding rust type.

Dhall prefers camelCase identifiers for items.

The formatting for dhall was wrong. Running `dhall format $FILE` will
make dhall format the file correctly for you.

Signed-off-by: Xe <me@xeiaso.net>

authored by

Andre Jiroh Halili and committed by
GitHub
aadc8f4f 2e050921

+38 -3
+8
dhall/signalboost.dhall
··· 249 249 , gitLink = Some "https://github.com/henri" 250 250 , twitter = Some "https://twitter.com/henri_shustak" 251 251 } 252 + , Person::{ 253 + , name = "Andrei Jiroh Halili" 254 + , tags = [ "backend", "bash", "nodejs", "deno", "alpinelinux", "linux" ] 255 + , gitLink = Some "https://github.com/ajhalili2006" 256 + , twitter = Some "https://twitter.com/Kuys_Potpot" 257 + , fediverse = Some "https://tilde.zone/@ajhalili2006" 258 + , website = Some "https://ajhalili2006.bio.link" 259 + } 252 260 ]
+13 -1
dhall/types/Person.dhall
··· 3 3 , tags : List Text 4 4 , gitLink : Optional Text 5 5 , twitter : Optional Text 6 + , linkedin : Optional Text 7 + , fediverse : Optional Text 8 + , coverLetter : Optional Text 9 + , website : Optional Text 6 10 } 7 11 , default = 8 - { name = "", tags = [] : List Text, gitLink = None Text, twitter = None Text } 12 + { name = "" 13 + , tags = [] : List Text 14 + , gitLink = None Text 15 + , twitter = None Text 16 + , linkedin = None Text 17 + , fediverse = None Text 18 + , coverLetter = None Text 19 + , website = None Text 20 + } 9 21 }
+5 -2
src/signalboost.rs
··· 4 4 pub struct Person { 5 5 pub name: String, 6 6 pub tags: Vec<String>, 7 - 8 7 #[serde(rename = "gitLink")] 9 8 pub git_link: Option<String>, 10 - 11 9 pub twitter: Option<String>, 10 + pub linkedin: Option<String>, 11 + pub fediverse: Option<String>, 12 + #[serde(rename = "coverLetter")] 13 + pub cover_letter: Option<String>, 14 + pub website: Option<String>, 12 15 } 13 16 14 17 #[cfg(test)]
+12
templates/signalboost.rs.html
··· 27 27 @if person.twitter.is_some() { 28 28 <a href="@person.twitter.unwrap()">Twitter</a> 29 29 } 30 + @if person.linkedin.is_some() { 31 + <a href="#person.linkedin.unwrap()">LinkedIn</a> 32 + } 33 + @if person.fediverse.is_some() { 34 + <a href="@person.fediverse.unwrap()">Fediverse</a> 35 + } 36 + @if person.cover_letter.is_some() { 37 + <a href="@person.cover_letter.unwrap()">Cover letter</a> 38 + } 39 + @if person.website.is_some() { 40 + <a href="@person.website.unwrap()">Website</a> 41 + } 30 42 </div> 31 43 } 32 44 </div>