add copy code button and config param #122

This commit is contained in:
Dmitry Kolosov 2022-01-18 19:56:02 +03:00
parent 4be0a7b13a
commit 05206ec021
6 changed files with 115 additions and 3 deletions

View file

@ -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 }}