Fork me on GitHub
#clerk
<
2023-05-04
>
andersmurphy13:05:29

Is there an easy way to generate top level section in clerk? Something along the lines of:

(for [[emoji _] (take 3 (top-emojis))]
  (clerk/md (str "### Most " emoji " messages"))
  (clerk/table (messages-for-emoji #{emoji})))
Thanks! The best I’ve managed to come up with so far is :thinking_face::
(clerk/html
 [:div
  (for [[emoji] (take 3 (top-emojis))]
    [:div
     (clerk/md (str "### Most " emoji " messages"))
     (clerk/table (messages-for-emoji #{emoji}))])])

Sam Ritchie14:05:57

I think you can use [:h3 …] etc for your headings

🙏 1
Sam Ritchie14:05:22

Thomas Clark had a Clerk appearance in his conj talk as well: https://youtu.be/WXtbndYRqBs?t=1789

👍 3
Ellis14:05:30

Very interesting talk!

Sam Ritchie14:05:55

not sure if the timestamp applies correctly to the embedded video but should if you click through

mkvlr15:05:51

Clerk’s homepage becoming more interactive :juggling:

clojure-spin 5
🙌 3
teodorlu16:05:13

Oooh, nice! At first I thought you were planning to change https://clerk.vision/, but I assume this is for local dev and static output. Nice to be able to find documents faster!

mkvlr18:05:40

yep, for local dev, dogfooding clerk’s RAD primitives, code is in https://github.com/nextjournal/clerk/pull/472

💯 1