Automatically fetch extra styles

This commit is contained in:
C. Lente 2023-02-13 17:59:27 -03:00
parent 15a1e63122
commit d6592fd409
No known key found for this signature in database
GPG key ID: B0B503C26E05781B
2 changed files with 14 additions and 0 deletions

View file

@ -17,6 +17,11 @@
{{ $syntax := resources.Get "syntax.css" | minify }}
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
{{ with .Params.style }}
{{ $extra := resources.Get . | minify }}
<link href="{{ $extra.RelPermalink }}" rel="stylesheet">
{{ end }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}