fixed live tile colour handling

This commit is contained in:
Riccardo Spagni 2015-02-18 10:54:05 +02:00
parent 436b54b900
commit 519c24a7c2
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 9 additions and 2 deletions

View file

@ -10,4 +10,7 @@ markdown: kramdown
exclude: ["README.md"]
paginate: 10
paginate_path: blog/page:num/
paginate_path: blog/page:num/
# Windows live tiles config
ie_tile_color: 505050

View file

@ -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"]