Enable custom CSS and bring in writing layout from blog.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -50,6 +50,13 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.custom_css }}
|
||||
{{ range $customCss := .Params.custom_css }}
|
||||
{{ $renderedCustomCss := page.Resources.Get $customCss | css.Sass (dict "includePaths" (slice "themes/vanilla/assets/scss")) | resources.Minify }}
|
||||
<link rel="stylesheet" href="{{ $renderedCustomCss.Permalink }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsServer }}
|
||||
<!-- KaTeX auto-rendering for when we don't have a post-processing step. -->
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
|
||||
|
||||
Reference in New Issue
Block a user