From f8c584bf8864fef726af5377828098ee2601af42 Mon Sep 17 00:00:00 2001 From: yuri1969 <1969yuri1969@gmail.com> Date: Wed, 19 Jun 2024 21:05:32 +0200 Subject: [PATCH] fix: list code block copy button config --- exampleSite/content/docs/guide/syntax-highlighting.md | 2 -- exampleSite/hugo.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/docs/guide/syntax-highlighting.md b/exampleSite/content/docs/guide/syntax-highlighting.md index 799c5ec..018b0a0 100644 --- a/exampleSite/content/docs/guide/syntax-highlighting.md +++ b/exampleSite/content/docs/guide/syntax-highlighting.md @@ -78,12 +78,10 @@ def main(): say_hello() ``` - ### Copy Button By default, copy button is enabled for code blocks. - ## Supported Languages For a list of supported languages, please see the [Chroma documentation](https://github.com/alecthomas/chroma#supported-languages). diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 5b0776a..d2c03d0 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -151,6 +151,12 @@ params: sortBy: date sortOrder: desc # or "asc" + highlight: + copy: + enable: true + # hover | always + display: hover + comments: enable: false type: giscus