Questions on code formatting #357
-
Hi 👋 and thanks for a great project! I'd like to make code blocks and inline code (using backticks) use the Fira Code font but I'm having issues making that work. I also would like to remove the backticks shown for inline code. Custom font for code blocks and inline codeWith a previous Hugo theme, I added this to my /* https://cdn.jsdelivr.net/gh/tonsky/[email protected]/ */
@import url(https://cdn.jsdelivr.net/gh/tonsky/[email protected]/distr/fira_code.css);
code {
font-family: "Fira Code";
} Do you see what I'm doing wrong here? Visible backticksI am noticing that inline codes (specified by backticks) are rendered like this by default: I don't want these backticks visible, and instead I'd like this to show something like this (and using the Fira Code font): Can I achieve this myself, or should this be an option in the theme config? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @fredrikaverpil thanks for reaching out. Regarding the The visible backticks you can override it using Hugo's docs. If you would like to propose that change feel free to open a ticket in the repo. Thanks again and happy new year! |
Beta Was this translation helpful? Give feedback.
Hey @fredrikaverpil thanks for reaching out.
Regarding the
custom.css
that should work. The docs site for blowfish uses that also, you can check theexampleSite
folder in the repo. Happy to have a look at your code an try to figure it out.The visible backticks you can override it using Hugo's docs. If you would like to propose that change feel free to open a ticket in the repo.
Thanks again and happy new year!