Hi,
I'm using this template [GitHub - calintat/minimal: Personal blog theme powered by Hugo ] to create my website. Now, I've noticed that every time I write a code inline like for example the following line:
dlyr basics: (i)filter()
, (ii) arrange(), (iii) select(), (iv) mutate(), (v) summarize() and pipeline operator
I get the code in red. Like the following:
I tried searching in the main.css file already but couldn't fine any line where I could change the color. I don't have the issue with the color when I knit the Rmd file to pdf or to word. Does anyone how I can edit the color of the inline code?
I would really appreciate any help
Karen
Your theme is using highlightjs to highlight both inline code and code chunks:
<!-- highlight.js -->
{{ if .Site.Params.highlight | default false }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
{{ range .Site.Params.highlightLanguages }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{ . }}.min.js"></script>
{{ end }}
<script>hljs.initHighlightingOnLoad();</script>
{{ end }}
<!-- custom -->
{{ range .Site.Params.js }} <script src="{{ . | absURL }}"></script> {{ end }}
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- dismiss expanded navigation bar with click -->
<script>$(document).on('click', function() { $('.collapse').collapse('hide'); })</script>
You can see that it is pulling from these settings in your site's config.toml
file:
highlight = true
highlightStyle = "default"
highlightLanguages = ["go", "haskell", "kotlin", "scala", "swift"]
You can see how this looks on the demo site:
https://themes.gohugo.io//theme/minimal/post/markdown-syntax/
1 Like
Thank you! I'll have a look at it
system
Closed
May 26, 2020, 9:06pm
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.