diff options
Diffstat (limited to 'layouts/partials/head/css.html')
-rw-r--r-- | layouts/partials/head/css.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html new file mode 100644 index 0000000..2813437 --- /dev/null +++ b/layouts/partials/head/css.html @@ -0,0 +1,15 @@ +<!-- Fonts and icon CSS --> +<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relURL }}"> +<link rel="stylesheet" href="{{ "/css/nunito_sans.css" | relURL }}"> + +<!-- Main css --> +{{ if .Site.Params.cacheBuster }} + <link rel="stylesheet" href="{{ (printf "css/%s-style.css?t=%d" (.Site.Params.themeStyle | default "dark") now.Unix) |relURL }}"> +{{ else }} + <link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | relURL }}"> +{{ end }} + +<!-- Custom css --> +{{ range .Site.Params.customCSS -}} + <link rel="stylesheet" href="{{ . | relURL }}"> +{{- end }} |