aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC. Lente <7017340+clente@users.noreply.github.com>2023-02-13 17:59:27 -0300
committerC. Lente <7017340+clente@users.noreply.github.com>2023-02-13 17:59:27 -0300
commitd6592fd40922b59ff3b9afe6123cb32972eb003f (patch)
tree422c8bc90d6c642d505c30375a59af7f6cb9b1d9
parent15a1e63122aad53673370c1c2649d71c0b1e5f43 (diff)
downloadhugo-bearcub-d6592fd40922b59ff3b9afe6123cb32972eb003f.tar.gz
hugo-bearcub-d6592fd40922b59ff3b9afe6123cb32972eb003f.tar.bz2
Automatically fetch extra styles
-rw-r--r--assets/style.css9
-rw-r--r--layouts/_default/baseof.html5
2 files changed, 14 insertions, 0 deletions
diff --git a/assets/style.css b/assets/style.css
index 95b7692..cd2e018 100644
--- a/assets/style.css
+++ b/assets/style.css
@@ -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%;
}
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 -}}