From 9a070c238083e03ebbe799f6eb958381531fbbc8 Mon Sep 17 00:00:00 2001
From: Khosrow Moossavi <khos2ow@gmail.com>
Date: Mon, 14 May 2018 12:51:23 +0000
Subject: [PATCH] Ability to add extra custom CSS (#22)
---
exampleSite/config.toml | 3 +++
layouts/_default/baseof.html | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 58488e0..3dc070e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -23,6 +23,9 @@
hideCredits = false
hideCopyright = false
+ # Custom CSS
+ custom_css = []
+
[[params.social]]
name = "Github"
weight = 1
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a094dc1..057fb01 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -18,6 +18,10 @@
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
<link rel="stylesheet" href="{{ "css/style.min.css" | absURL }}">
+ {{ range .Site.Params.custom_css }}
+ <link rel="stylesheet" href="{{ . | absURL }}">
+ {{ end }}
+
<link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
<link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
--
Gitblit v1.10.0