-
config.yaml ...
params:
# Set this to true to disable copy-to-clipboard button for inline code.
disableInlineCopyToClipBoard: true |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Works for me and the exampleSite. What's with your second snippet? |
Beta Was this translation helpful? Give feedback.
-
It's the result of this code
|
Beta Was this translation helpful? Give feedback.
-
As the config options reads: disableInlineCopyToClipBoard, which effectifly means this style: |
Beta Was this translation helpful? Give feedback.
-
My Hugo version With the exampleSite :
after the corrections by pasting all in one line, it's ok in config.toml I added the line [params]
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/"
description = "Documentation for Hugo Relearn Theme"
author = "Sören Weber"
showVisitedLinks = true
disableBreadcrumb = false
disableNextPrev = false
disableLandingPageButton = true
disableMermaid = false
titleSeparator = "::"
themeVariant = "relearn"
disableSeoHiddenPages = true
disableInlineCopyToClipBoard = true and the icon to paste the code is always displayed |
Beta Was this translation helpful? Give feedback.
-
First: Your Hugo version is almost a year old. The theme is usually tested with the latest version of Hugo. All new features are tested with the latest version. Second: There is no build in way to get rid of the "copy to clipboard" marker in block code but you are free to modify the CSS to your likings as described in the themes documentation. Note: This is only my assumption of the things you wanted to achieve on the few things you wrote. I may be wrong on this. Third: |
Beta Was this translation helpful? Give feedback.
As the config options reads: disableInlineCopyToClipBoard, which effectifly means this style: