From 5c9b5be9033160059e5abc11798e6ad8d02c2873 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 May 2017 11:07:03 -0400 Subject: [PATCH] show screenshots of skins in seo --- Project-Unite/Views/Shared/_Layout.cshtml | 2 +- Project-Unite/Views/Skins/PostSkin.cshtml | 4 ++++ Project-Unite/Views/Skins/ViewSkin.cshtml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index 3a1430d..1ab9599 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -34,7 +34,7 @@ - + @Styles.Render("~/Content/css") @Styles.Render("~/Content/bootstrap-theme.css") diff --git a/Project-Unite/Views/Skins/PostSkin.cshtml b/Project-Unite/Views/Skins/PostSkin.cshtml index a2b7471..1875213 100644 --- a/Project-Unite/Views/Skins/PostSkin.cshtml +++ b/Project-Unite/Views/Skins/PostSkin.cshtml @@ -34,6 +34,10 @@ Screenshot:
Here you can upload a main screenshot to show on the repo index and view skin pages. This isn't required, but is recommended so that users can see what your skin looks like before applying it. @Html.TextBoxFor(Model => Model.ScreenshotFile, new { @class = "form-control", type="file" }) + + Keywords:
Comma-separated list of keywords to help search engines find this skin. + @Html.TextBoxFor(Model=>Model.Keywords, new{@class="form-control"}) + diff --git a/Project-Unite/Views/Skins/ViewSkin.cshtml b/Project-Unite/Views/Skins/ViewSkin.cshtml index 96dd541..45d9278 100644 --- a/Project-Unite/Views/Skins/ViewSkin.cshtml +++ b/Project-Unite/Views/Skins/ViewSkin.cshtml @@ -3,6 +3,8 @@ ViewBag.Title = Model.Name + " - Skin Repository"; ViewBag.Description = Model.ShortDescription; ViewBag.Keywords = "shiftos, shift, shifting, shifted, shifter, " + Model.Keywords; + if(!string.IsNullOrWhiteSpace(Model.ScreenshotUrl)) + ViewBag.Image = "http://getshiftos.ml/" + Model.ScreenshotUrl; }

@Model.Name