From 0788de232473dbedfe64b8f1909183aaef7401c7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 11 Oct 2021 01:20:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Allow=20custom=20CSS=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/jekyll-theme-bluelib.iml | 3 ++- README.md | 1 + _layouts/default.html | 11 ++++++++--- jekyll-theme-bluelib.gemspec | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.idea/jekyll-theme-bluelib.iml b/.idea/jekyll-theme-bluelib.iml index 87a4e1a..b8fd174 100644 --- a/.idea/jekyll-theme-bluelib.iml +++ b/.idea/jekyll-theme-bluelib.iml @@ -11,6 +11,7 @@ + @@ -39,6 +40,6 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index fb7eb69..d9c431b 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ In particular, it ``s in the following order: 1. The `skeleton.root.css` from the latest version of bluelib 2. The bluelib `root` target defined in the `bluelib` variable of `_config.yml` (`site.bluelib`) 3. The bluelib `root` target defined in the `bluelib` variable of the Front Matter of the page (`page.bluelib`) +4. The CSS files specified in the `extra_css` array of `_config.yml` (`site.extra_css`) ### `base` diff --git a/_layouts/default.html b/_layouts/default.html index c87aff3..f48b6a3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,8 +1,13 @@ - - - + + + + + {% for css in site.extra_css %} + + {% endfor %} + {{ page.title }} {{ content }} diff --git a/jekyll-theme-bluelib.gemspec b/jekyll-theme-bluelib.gemspec index ad88243..16220bf 100644 --- a/jekyll-theme-bluelib.gemspec +++ b/jekyll-theme-bluelib.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-theme-bluelib" - spec.version = "0.1.0" + spec.version = "0.1.1" spec.authors = ["Stefano Pigozzi"] spec.email = ["me@steffo.eu"]