summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-24 14:12:04 -0400
committerMichael <[email protected]>2017-05-24 14:12:04 -0400
commit7c3d5156e13a8394350150662faf599d00e83e97 (patch)
treeb77aa013b4d098c024018ab3ca419283f73cfa44
parenteb8a56e37ed9c8f0893998d308f2b2112bbac63c (diff)
downloadproject-unite-7c3d5156e13a8394350150662faf599d00e83e97.tar.gz
project-unite-7c3d5156e13a8394350150662faf599d00e83e97.tar.bz2
project-unite-7c3d5156e13a8394350150662faf599d00e83e97.zip
grrrrrrrrrrr
-rw-r--r--Project-Unite/Views/Shared/_Layout.cshtml26
1 files changed, 22 insertions, 4 deletions
diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml
index 1ab9599..251ea02 100644
--- a/Project-Unite/Views/Shared/_Layout.cshtml
+++ b/Project-Unite/Views/Shared/_Layout.cshtml
@@ -27,14 +27,32 @@
<script src="@Url.Action("jquery.datetimepicker.js", "Scripts")"></script>
<link rel="stylesheet" href="~/Content/datetimepicker.css" />
@RenderSection("scripts", required: false)
-
+ @if (!string.IsNullOrWhiteSpace(ViewBag.Title))
+ {
<title>@ViewBag.Title &bull; ShiftOS</title>
+ <meta property="og:title" content="@ViewBag.Title - ShiftOS" />
+ }
+ else
+ {
+ <title>ShiftOS</title>
+ <meta property="og:title" contest="ShiftOS" />
+ }
- <meta name="description" content="@ViewBag.Description" />
+ @if (!string.IsNullOrWhiteSpace(ViewBag.Keywords))
+ {
<meta name="keywords" content="@Model.Keywords" />
- <meta property="og:title" content="@ViewBag.Title" />
+ }
+
+ @if (!string.IsNullOrWhiteSpace(ViewBag.Description))
+ {
+ <meta name="description" content="@ViewBag.Description" />
<meta property="og:description" content="@ViewBag.Description" />
- <meta property="og:image" content="@ViewBag.Image" />
+ }
+
+ @if (!string.IsNullOrWhiteSpace(ViewBag.Image))
+ {
+ <meta property="og:image" content="@ViewBag.Image" />
+ }
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/bootstrap-theme.css")