From 519c24a7c25353809848a5d19041a55d25c0ba78 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 18 Feb 2015 10:54:05 +0200 Subject: [PATCH] fixed live tile colour handling --- _config.yml | 5 ++++- _plugins/jekyll-live-tiles.rb | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 1c826bdf..35d504cd 100644 --- a/_config.yml +++ b/_config.yml @@ -10,4 +10,7 @@ markdown: kramdown exclude: ["README.md"] paginate: 10 -paginate_path: blog/page:num/ \ No newline at end of file +paginate_path: blog/page:num/ + +# Windows live tiles config +ie_tile_color: 505050 \ No newline at end of file diff --git a/_plugins/jekyll-live-tiles.rb b/_plugins/jekyll-live-tiles.rb index c7475344..4bff229f 100644 --- a/_plugins/jekyll-live-tiles.rb +++ b/_plugins/jekyll-live-tiles.rb @@ -41,7 +41,11 @@ module Jekyll def generate_config(site) # Configs - tile_color = site.config["ie_tile_color"] || "#000000" + if site.config["ie_tile_color"] + tile_color = "\##{site.config["ie_tile_color"]}" + else + tile_color = "#000000" + end frequency = site.config["ie_frequency"] || 1440 tile_small = site.config["ie_tile_small"] tile_medium = site.config["ie_tile_medium"]