aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-15 14:56:03 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-15 14:56:03 +0200
commitaf462ff2aabf2b326de9e12cc6c28dfe743ef024 (patch)
treedb8f6dcf1fd87b1ba83e69b1d7dde453ff20fc91
parentf797661650869f7639b6c60ef9a0703e0f3c3769 (diff)
downloadhugo-minimalist-theme-af462ff2aabf2b326de9e12cc6c28dfe743ef024.tar.gz
hugo-minimalist-theme-af462ff2aabf2b326de9e12cc6c28dfe743ef024.tar.bz2
hugo-minimalist-theme-af462ff2aabf2b326de9e12cc6c28dfe743ef024.zip
add customCSS
-rw-r--r--layouts/partials/head.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index eb2804a..173660c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,6 +3,15 @@
<!-- FontAwesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
+<!-- CustomCSS -->
+ {{ range .Site.Params.customCSS }}
+ {{ if isset . "href" }}
+ <link {{ if not (isset . "rel") }}rel="stylesheet" {{ end }}{{ range $key, $value := . }} {{ if eq $key "href" }}{{ (printf "%s=\"%s\"" $key ($value | absURL)) | safeHTMLAttr }}{{ else }}{{ (printf "%s=\"%s\"" $key (string $value)) | safeHTMLAttr }}{{ end }}{{ end }}>
+ {{ else }}
+ <link rel="stylesheet" href="{{ . | absURL }}">
+ {{ end }}
+ {{ end }}
+
<!-- Highligth.js -->
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/zenburn.min.css">
@@ -25,8 +34,8 @@
color: #357edd;
}
- #sidebar a {
- text-shadow: 1px 2px 0px rgba(0,0,0,0.9);
+ #sidebar {
+ text-shadow: 1px 1px 1px #111;
}
.post-header {