-
DescriptionHi amazing quarto community! I was wondering if I can give colors to categories: in listings: and also give consistent category colors inside individual pages: I want to achieve something like this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Probably with a bunch of (S)CSS and JavaScript. If you look at your example from GitHub, what you want implies:
You could achieve 1. using a custom listing (EJS which uses JavaScript to compute things), but it won't have an effect to individual posts. |
Beta Was this translation helpful? Give feedback.
-
@mcanouil for having categories sourced from a separate file, i found this: this does not have all of the things: (colors, icon) it just has keyword name right now. |
Beta Was this translation helpful? Give feedback.
You'll have to write that logic yourself somewhere using Lua, Javascript, and (S)CSS:
Don't
\`\`\`
, simply enclose with more.Example:
add to
_quarto.yml