mirror of
https://github.com/imfing/hextra.git
synced 2025-05-17 10:38:25 -04:00
Compare commits
2 Commits
da5b49e606
...
ea69f0bf59
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ea69f0bf59 | ||
![]() |
56f6f19978 |
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user