diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index b484e02..159a7d5 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -1,5 +1,13 @@  - +@{ + string style = ""; + if (ViewBag.Banner != null) + { + style = "background-image: url(\"" + ViewBag.Banner + "\") cover;"; + } +} + + @@ -12,14 +20,7 @@ @Scripts.Render("~/bundles/modernizr") -@{ - string style = ""; - if(ViewBag.Banner != null) - { - style = "background-image: url(\"" + ViewBag.Banner + "\") cover;"; - } -} - + @Scripts.Render("~/Scripts/highlight.js")