mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
add parameter to disable copy-to-clipboard function for inline code
This commit is contained in:
parent
9eb81efb44
commit
e37af28876
3 changed files with 9 additions and 1 deletions
|
@ -3,9 +3,11 @@
|
|||
- créer une section Showcase
|
||||
- refaire la possibilité d'overrider le style/script/etc -> TODO
|
||||
- créer des jolis thèmes de base (avec des noms) -> TODO
|
||||
- corriger slider menu qui ne fonctionne plus -> TODO
|
||||
- ajouter Travis pour tester le thème quotidiennement avec les nouvelles versions de Hugo -> TODO
|
||||
|
||||
|
||||
- #54 -> OK
|
||||
- corriger slider menu qui ne fonctionne plus -> OK
|
||||
- Update font awesome -> OK
|
||||
- internationalisation -> OK
|
||||
- Messages: OK
|
||||
|
|
|
@ -15,6 +15,7 @@ defaultContentLanguageInSubdir= true
|
|||
disableSearch = false # default to false
|
||||
disableAssetBusting = false # default to false
|
||||
ordersectionsby = "weight" # ordersectionsby = "title"
|
||||
disableInlineCopyToClipBoard = true # default to false
|
||||
|
||||
[outputs]
|
||||
home = [ "HTML", "RSS", "JSON"]
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
:root #header + #content > #left > #rlblock_left{
|
||||
display:none !important;
|
||||
}
|
||||
{{ if .Site.Params.disableInlineCopyToClipBoard }}
|
||||
:not(pre) > code + span.copy-to-clipboard {
|
||||
display: none;
|
||||
}
|
||||
{{ end }}
|
||||
</style>
|
||||
{{ partial "style.html" . }}
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue