minimal
minimal copied to clipboard
Configurable font-family for code blocks
It would be really nice to be able to have a configurable option for the code font in config.toml:
font = "Montserrat"
font_code = "Ubuntu Mono"
It appears that inline code (e.g. "Run whoami
at the prompt") uses code blocks around whoami. Larger blocks of code use code blocks as well, but the highlight.js class needed to be used as well. I had success with the following in my own custom.css:
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');
body code, .hljs {
font-family: 'Ubuntu Mono', monospace;
}
Is there a better way to do this? Thoughts?