mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
docs/site: add Rouge syntax highlighting styles
This commit is contained in:
parent
1975ee0554
commit
4e72a3fe25
@ -1,7 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
{{ partial "head.html" . -}}
|
||||
{{ partial "head-extended.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="book sidebar" aria-label="Table of contents">
|
||||
|
6
docs/layouts/partials/head-extended.html
Normal file
6
docs/layouts/partials/head-extended.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{- /* Here's where the customized version should be. */ -}}
|
||||
{{ $highlighter := resources.Get "css/rouge.scss" | resources.ToCSS }}
|
||||
{{- if hugo.IsProduction }}
|
||||
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="{{ $highlighter.RelPermalink }}"/>
|
Loading…
Reference in New Issue
Block a user