mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Re-enable pygments and add copy-code button
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
<div class="footer-info">
|
||||
{{ dateFormat "2006" now }} {{ with .Site.Copyright }} {{ . }} {{ end }}
|
||||
</div>
|
||||
{{ if (findRE "<pre" .Content 1) }}
|
||||
<script src="/js/copy-code-button.js"></script>
|
||||
{{ end }}
|
||||
</footer>
|
||||
{{ if not .Site.IsServer }} {{ template "_internal/google_analytics.html" . }}
|
||||
{{ end }} {{- if (isset .Site.Params "social") -}}
|
||||
|
@@ -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