mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
16 lines
581 B
HTML
16 lines
581 B
HTML
{{- /* Here's where the customized version should be. */ -}}
|
|
{{ $highlighter := resources.Get "css/rouge.scss" | toCSS }}
|
|
{{- if hugo.IsProduction }}
|
|
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
|
{{ end }}
|
|
<link rel="stylesheet" href="{{ $highlighter.RelPermalink }}"/>
|
|
|
|
{{- /* medium-zoom */ -}}
|
|
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.8/dist/medium-zoom.min.js"></script>
|
|
<script>
|
|
window.addEventListener('load', () => {
|
|
mediumZoom('article .imageblock img', { 'background': 'rgba(0, 0, 0, 0.75)' })
|
|
})
|
|
</script>
|
|
|