{{ if .Params.image }} - + + {{ end }}

{{ .Title }}

diff --git a/themes/flog/layouts/partials/footer.html b/themes/flog/layouts/partials/footer.html index 6a2857e..0dcd9e1 100644 --- a/themes/flog/layouts/partials/footer.html +++ b/themes/flog/layouts/partials/footer.html @@ -17,9 +17,10 @@ $('.button-collapse').sideNav(); $('#main').smoothState({ prefetch: true, onAfter: ready }); }); - - $(document).ready(function() { - $('.parallax').parallax(); + $('body').imagesLoaded({ background: true }, function() { + $('').load(function() { + $('body').css('background-image', 'url(' + this.src + ')'); + }); }); diff --git a/themes/flog/layouts/partials/header.html b/themes/flog/layouts/partials/header.html index 07fdd3d..8016f53 100644 --- a/themes/flog/layouts/partials/header.html +++ b/themes/flog/layouts/partials/header.html @@ -9,8 +9,7 @@ {{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }} - - +