Adjust display to show ownership of work-projects by specific job
This commit is contained in:
parent
6e8d7bc106
commit
42cf5fbeb7
3 changed files with 22 additions and 13 deletions
12
generate.scm
12
generate.scm
|
|
@ -64,11 +64,12 @@
|
|||
(p (@ (class "title-blurb"))
|
||||
,(string-join (field tc 'blurb) " "))))
|
||||
|
||||
;; Emit a title card followed by its work-project cards as a flat list of siblings
|
||||
;; Wrap title card + its project cards in a .job-group container
|
||||
(define (render-title-flat tc)
|
||||
(append
|
||||
(list (render-title-card tc))
|
||||
(map render-work-project (field tc 'projects))))
|
||||
(list
|
||||
`(div (@ (class "job-group"))
|
||||
,(render-title-card tc)
|
||||
,@(map render-work-project (field tc 'projects)))))
|
||||
|
||||
(define (render-education edu)
|
||||
`(div (@ (class "education-card")
|
||||
|
|
@ -102,8 +103,7 @@
|
|||
(define (section->items sec)
|
||||
(case (car sec)
|
||||
((job)
|
||||
(apply append (map render-title-flat (field sec 'titles))))
|
||||
((education)
|
||||
(apply append (map render-title-flat (field sec 'titles)))) ((education)
|
||||
(list (render-education sec)))
|
||||
((hobby-projects)
|
||||
(map render-project (field sec 'projects)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue