+ {{ end -}}
{{ .Title }}
{{ .Params.lead | safeHTML }}
{{ partial "main/headline-hash.html" .Content }}
- {{ partial "main/edit-page.html" . }}
+ {{ if .Site.Params.editPage -}}
+ {{ partial "main/edit-page.html" . }}
+ {{ end -}}
{{ partial "main/docs-navigation.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 739f0ac..0ef0313 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,41 +14,8 @@
{{ end }}
{{ define "sidebar-prefooter" }}
-
{{ end }}
-
{{ define "sidebar-footer" }}
-
{{ end }}
diff --git a/layouts/partials/footer/script-footer.html b/layouts/partials/footer/script-footer.html
index 0d1f316..61d9baa 100644
--- a/layouts/partials/footer/script-footer.html
+++ b/layouts/partials/footer/script-footer.html
@@ -2,15 +2,16 @@
{{ $index := $indexTemplate | resources.ExecuteAsTemplate "index.js" . -}}
{{ $lazysizes := resources.Get "js/vendor/lazysizes/lazysizes.min.js" -}}
{{ $flexsearch := resources.Get "js/vendor/flexsearch/dist/flexsearch.min.js" -}}
+{{ $clipboard := resources.Get "js/vendor/clipboard/dist/clipboard.min.js" -}}
{{ if eq (hugo.Environment) "development" -}}
{{ $app := resources.Get "js/app.js" -}}
- {{ $js := slice $lazysizes $flexsearch $app | resources.Concat "main.js" -}}
+ {{ $js := slice $lazysizes $clipboard $flexsearch $app | resources.Concat "main.js" -}}
{{ else -}}
{{ $instantPage := resources.Get "js/vendor/instant.page/instantpage.js" | minify -}}
{{ $app := resources.Get "js/app.js" | minify -}}
- {{ $js := slice $lazysizes $flexsearch $instantPage $app | resources.Concat "main.js" -}}
+ {{ $js := slice $lazysizes $clipboard $flexsearch $instantPage $app | resources.Concat "main.js" -}}
{{ $jsProd := $js | resources.Fingerprint "sha512" -}}
{{ $indexProd := $index | resources.Minify | resources.Fingerprint "sha512" -}}
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 0a3ecb5..727a518 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -7,4 +7,4 @@
{{ block "head/seo" . }}{{ partial "head/seo.html" . }}{{ end }}
{{ block "head/favicons" . }}{{ partial "head/favicons.html" . }}{{ end }}
{{ block "head/script-header" . }}{{ partial "head/script-header.html" . }}{{ end }}
-
+
\ No newline at end of file
diff --git a/layouts/shortcodes/btn-copy.html b/layouts/shortcodes/btn-copy.html
new file mode 100644
index 0000000..35479e1
--- /dev/null
+++ b/layouts/shortcodes/btn-copy.html
@@ -0,0 +1 @@
+