diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-13 17:59:27 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-13 17:59:27 -0300 |
commit | d6592fd40922b59ff3b9afe6123cb32972eb003f (patch) | |
tree | 422c8bc90d6c642d505c30375a59af7f6cb9b1d9 /layouts | |
parent | 15a1e63122aad53673370c1c2649d71c0b1e5f43 (diff) | |
download | hugo-bearcub-d6592fd40922b59ff3b9afe6123cb32972eb003f.tar.gz hugo-bearcub-d6592fd40922b59ff3b9afe6123cb32972eb003f.tar.bz2 |
Automatically fetch extra styles
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2f06d5a..7aa0605 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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 -}} |