From d6592fd40922b59ff3b9afe6123cb32972eb003f Mon Sep 17 00:00:00 2001 From: "C. Lente" <7017340+clente@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:59:27 -0300 Subject: [PATCH] Automatically fetch extra styles --- assets/style.css | 9 +++++++++ layouts/_default/baseof.html | 5 +++++ 2 files changed, 14 insertions(+) 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 }} + {{ with .Params.style }} + {{ $extra := resources.Get . | minify }} + + {{ end }} + {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}}