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

How to use chroma of hugo code highlight? #56

Open
qiref opened this issue May 23, 2024 · 0 comments
Open

How to use chroma of hugo code highlight? #56

qiref opened this issue May 23, 2024 · 0 comments

Comments

@qiref
Copy link

qiref commented May 23, 2024

I saw the issue: #30 ,

and found the param disable_highlight to disable code highlight default:

params:
  disable_highlight: true

But not work for me.

When I deleted this lines in foot_custom.html :

{{ if and (not .Params.disable_highlight) (in (string .Content) "</pre>") }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rstudio/markdown/inst/resources/prism-xcode.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js" defer></script>
{{ end }}

and add hugo params in config.yaml:

markup:
  highlight:
    codeFences: false
    style: catppuccin-latte

code highlight not work, so , what should I do to use the chroma of hugo code highlight?

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

1 participant