Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the font of code #6

Open
yo80106 opened this issue Jul 17, 2018 · 2 comments
Open

Change the font of code #6

yo80106 opened this issue Jul 17, 2018 · 2 comments

Comments

@yo80106
Copy link

yo80106 commented Jul 17, 2018

Is there any way to change the font style of code? I am recently using this theme in R blogdown. I am looking for the way that could make the font of my R codes look better.

@taikii
Copy link
Owner

taikii commented Jul 18, 2018

Thank you for using this theme!

If you create a custom.css file, that setting will be overwritten. For example, please write as follows.

{your_hugo_site_root}/static/css/custom.css

pre, code {
  font-family: Meiriyo;
  font-size: 9pt;
}

To change the style of syntax highlighting, please create Chroma's Syntax Highlighter CSS as below.
https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css

$ hugo gen chromastyles --style=manni > {your_hugo_site_root}/static/css/syntax.css

Unfortunately, Pygments (Chroma) does not seem to support R.

@yo80106
Copy link
Author

yo80106 commented Jul 18, 2018

Thank you for your suggestions. I'll give a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants