Compare commits

...

2 Commits

Author SHA1 Message Date
yuri
ea69f0bf59
Merge 2fb6f63b4186dc63ca0739cc60b8632b357108ec into 56f6f19978aaa52fd04e76276f015f5ff9804035 2024-07-07 13:33:22 +01:00
yuri
56f6f19978
docs: list code block copy button config (#412)
Some checks failed
Deploy Hugo site to Pages / build (push) Has been cancelled
Deploy Hugo site to Pages / deploy (push) Has been cancelled
* fix: list code block copy button config

* Mention copy button config in the guide
2024-07-07 13:33:12 +01:00
2 changed files with 15 additions and 2 deletions

View File

@ -78,11 +78,18 @@ def main():
say_hello()
```
### Copy Button
By default, copy button is enabled for code blocks.
By default, copy button is enabled for code blocks. Its behavior can changed by modifying the site configuration file:
```yaml {linenos=table,linenostart=42,filename="hugo.yaml"}
params:
highlight:
copy:
enable: true
# hover | always
display: hover
```
## Supported Languages

View File

@ -151,6 +151,12 @@ params:
sortBy: date
sortOrder: desc # or "asc"
highlight:
copy:
enable: true
# hover | always
display: hover
comments:
enable: false
type: giscus