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

[BUG] Copy button in codeblock does not appear #851

Open
Bert-JanP opened this issue Sep 21, 2023 · 0 comments
Open

[BUG] Copy button in codeblock does not appear #851

Bert-JanP opened this issue Sep 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Bert-JanP
Copy link

Describe the bug 描述你遇到的错误

The documentation indicates that the lines as shown below create a copy button for all code blocks, unfortunately this does not happen.

    [params.page.code]
      # whether to show the copy button of the code block
      copy = true
      # the maximum number of lines of displayed code by default
      maxShownLines = 50

一段简短的对于你遇到的错误的描述.

Expected behavior 期待的行为

A copy button is created for each codeblock

A clear and concise description of what you expected to happen.
一段简短的对于你期待的行为的描述.

I expect that a button is created for each codeblock

Screenshots 屏幕截图

If applicable, add screenshots to help explain your problem.
如果可以的话, 提供屏幕截图对解决问题很有帮助.

Screenshot from 2023-09-21 18-23-59

Build Environment 构建环境

  • OS: Ubuntu
  • Theme version/commit e9e89a4
  • Hugo version v0.92.2

Please try to use Hugo extended version before opening the issue.
请在创建 issue 之前先尝试使用 Hugo extended 版本构建.

Preview Environment 预览环境

  • OS: [e.g. Windows 11, macOS, Ubuntu, iOS, Android]
  • Browser type/version [e.g. Chrome 103.0.5060.53, Safari 15.5, Edge 103.0.1264.37, Firefox 102.0]

Additional Information 补充信息

Configuration files or front matter code...
配置文件或者前置参数的代码...

@Bert-JanP Bert-JanP added the bug Something isn't working label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant