Compare commits

...

3 Commits

Author SHA1 Message Date
93f9c9c0f8 Merge d01ca4f07b into 1313415c8b 2024-07-04 11:15:54 +02:00
d01ca4f07b Mention copy button config in the guide 2024-07-04 11:15:33 +02:00
f8c584bf88 fix: list code block copy button config 2024-06-19 21:05:32 +02:00
2 changed files with 15 additions and 2 deletions

View File

@ -78,11 +78,18 @@ def main():
say_hello() say_hello()
``` ```
### Copy Button ### 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 ## Supported Languages

View File

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