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

Code Copy Button does not work #81

Closed
Limbend opened this issue Apr 25, 2022 · 3 comments · Fixed by #87
Closed

Code Copy Button does not work #81

Limbend opened this issue Apr 25, 2022 · 3 comments · Fixed by #87

Comments

@Limbend
Copy link

Limbend commented Apr 25, 2022

There is a button itself, but if you press, then nothing happens. Unlike your site.
I tried with a default config from config.example.toml

I also tried to add a line to the config
enablelinenos = true

Launch method:

docker run -it \
  --name="hugo" \
  -p 1313:1313 \
  -v /**my-site**:/src \
  --restart unless-stopped \
klakegg/hugo:ext-debian \
  server --disableFastRender -D
@thomasgtaylor
Copy link
Contributor

I can't reproduce this. It provides expected behavior on https://how.wtf

@fira42073
Copy link

You need to add

[markup]
[markup.highlight]
  noClasses = false
  lineNos = true

to config.toml

example conf https://github.com/Friedrich42/murrr.space/blob/master/config.toml

@Limbend
Copy link
Author

Limbend commented May 9, 2022

I used the standard config.toml from this topic.
There are the same parameters:

[markup]
[markup.highlight]
  noClasses = false
  lineNos = true

I did not figure out what the mistake was. But I solved the problem as follows for myself.
commit

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

Successfully merging a pull request may close this issue.

3 participants