From 0e878f04b2d61be155eea77d7fe183f5dbf4b497 Mon Sep 17 00:00:00 2001 From: Gus Esquivel Date: Tue, 16 May 2017 15:24:11 -0500 Subject: [PATCH] move background definitions to site config file --- layouts/index.html | 11 +++-------- src/js/slate.js | 2 +- static/js/slate.js | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f0765ce..f3963fb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,22 +1,17 @@ - slate + {{ .Title }} - + {{ partial "nav.html" . }}
{{ partial "tile_slate.html" . }}
-{{ if .Site.Data.page.backgrounds -}} - -{{- end }} - diff --git a/src/js/slate.js b/src/js/slate.js index c14eab0..a9f8d60 100644 --- a/src/js/slate.js +++ b/src/js/slate.js @@ -262,7 +262,7 @@ var renderTiles = function() { renderTiles(); var getBackgroundImages = function() { - var backgrounds = document.getElementsByTagName("background"); + var backgrounds = document.getElementsByTagName("body"); var images = []; if (backgrounds.length > 0) { var imgString = backgrounds[0].getAttribute("data-backgrounds"); diff --git a/static/js/slate.js b/static/js/slate.js index 20075b7..b546c22 100644 --- a/static/js/slate.js +++ b/static/js/slate.js @@ -3463,7 +3463,7 @@ var renderTiles = function() { renderTiles(); var getBackgroundImages = function() { - var backgrounds = document.getElementsByTagName("background"); + var backgrounds = document.getElementsByTagName("body"); var images = []; if (backgrounds.length > 0) { var imgString = backgrounds[0].getAttribute("data-backgrounds");