mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
Re-enable pygments and add copy-code button
This commit is contained in:
@@ -14,4 +14,10 @@
|
||||
<span id="dark-mode-toggle" onclick="toggleTheme()"></span>
|
||||
<script src="{{ .Site.BaseURL }}js/themetoggle.js"></script>
|
||||
{{ end }}
|
||||
{{ if (findRE "<pre" .Content 1) }}
|
||||
|
||||
{{ $copyCss := resources.Get "css/copy-code-button.css" | minify }}
|
||||
<link href="{{ $copyCss.RelPermalink }}" rel="stylesheet">
|
||||
{{ end }}
|
||||
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user