add copy code button and config param #122
This commit is contained in:
parent
4be0a7b13a
commit
05206ec021
6 changed files with 115 additions and 3 deletions
|
@ -18,6 +18,10 @@
|
|||
{{ partial "favicons.html" . }}
|
||||
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
|
||||
|
||||
{{ if .Site.Params.copyCodeButton | default true }}
|
||||
{{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/copy-code.js") }}
|
||||
{{ end }}
|
||||
|
||||
{{ range .Site.Params.customJS -}}
|
||||
{{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue