File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 2424 :author
2525 {:chouser
2626 {:name " Chris Houser"
27+ :image " https://avatars.githubusercontent.com/u/36110?v=4"
2728 :url " https://chouser.us/"
2829 :links [{:icon " github" :text " GitHub" :href " https://github.com/chouser" }]}
2930 :daslu
3031 {:name " Daniel Slutsky"
32+ :image " https://avatars.githubusercontent.com/u/5673102?v=4"
3133 :url " https://github.com/daslu"
3234 :affiliation [:scicloj ]
3335 :links [{:icon " github" :text " GitHub" :href " https://github.com/daslu" }]}
3436 :alexmiller
3537 {:name " Alex Miller"
38+ :image " https://avatars.githubusercontent.com/u/171129?v=4"
3639 :url " https://github.com/puredanger"
3740 :affiliation [:clojure.core ]
3841 :links [{:icon " github" :text " GitHub" :href " https://github.com/puredanger" }]}
3942 :seancorfield
4043 {:name " Sean Corfield"
44+ :image " https://avatars.githubusercontent.com/u/43875?v=4"
41454246 :url " https://corfield.org"
4347 :affiliation [:clojurecamp ]
4448 :links [{:icon " github" :text " GitHub" :href " https://github.com/seancorfield" }
4549 {:icon " mastodon" :text " Mastodon" :href " https://tech.lgbt/@seancorfield" }]}
4650 :timschafer
4751 {:name " Tim Schafer"
52+ :image " https://media.licdn.com/dms/image/v2/D4E03AQGuYEubu1rpeA/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1681232451970?e=1754524800&v=beta&t=YbMtki98RI584h2kge6dLdg8PF79uNb7NKt59wrpyVs"
4853 :url " https://github.com/srcerer"
4954 :affiliation [:clojurecamp ]
5055 :links [{:icon " github" :text " GitHub" :href " https://github.com/srcerer" }]}
5156 :timothypratley
5257 {:name " Timothy Pratley"
5358 :url " https://timothypratley.blogspot.com/p/httpswww.html"
59+ :image " https://avatars.githubusercontent.com/u/49298?v=4"
54605561 :affiliation [:hummi ]
5662 :links [{:icon " github" :text " GitHub" :href " https://github.com/timothypratley" }]}}}}}}
Original file line number Diff line number Diff line change 1+ ^:kindly/hide-code
2+ ^{:clay {:quarto {:title " Authors"
3+ :type :page }}}
4+ (ns civitas.authors
5+ (:require [clojure.edn :as edn]
6+ [scicloj.kindly.v4.kind :as kind]))
7+
8+ ^:kindly/hide-code
9+ (defn card [{:keys [name url links affiliation email image]}]
10+ (kind/hiccup
11+ [:div.card
12+ (when image [:img.card-img-top {:src image}])
13+ [:div.card-body
14+ [:h5.card-title [:a {:href url} name]]
15+ #_[:p email]]
16+ (for [{:keys [href icon text]} links]
17+ [:a {:href href} [:i {:class icon}] text])
18+ (for [a affiliation]
19+ (pr-str a))]))
20+
21+ ^:kindly/hide-code
22+ (->> (slurp " clay.edn" )
23+ (edn/read-string )
24+ :aliases :markdown :quarto/expansions :author vals
25+ (sort-by :name )
26+ (into ^:kind/hiccup [:div.card-group ] (map card)))
You can’t perform that action at this time.
0 commit comments