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

@ -60,6 +60,15 @@ table {
width: 100%;
}
table,
th,
td {
border: 1px solid;
border-collapse: collapse;
border-color: #c9d1d9;
padding: 5px;
}
img {
max-width: 100%;
}

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 -}}