Skip to content

Commit

Permalink
Merge pull request #125 from eatskolnikov/master
Browse files Browse the repository at this point in the history
### What's New
Added og metatags.
  • Loading branch information
claudiosanchez committed Jan 8, 2016
2 parents be273db + 73c98bd commit f81dd9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EmpleoDotNet/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using EmpleoDotNet.Helpers
@model List<EmpleoDotNet.Models.JobOpportunity>
@{
ViewBag.Title = "Home Page";
ViewBag.Title = "";
}

<div id="slider" class="sl-slider-wrapper">
Expand Down
2 changes: 2 additions & 0 deletions EmpleoDotNet/Views/JobOpportunity/Detail.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
@model EmpleoDotNet.Models.JobOpportunity
@{
ViewBag.Title = Model.Title;
ViewBag.Description = Model.Description;
ViewBag.ImageUrl = Model.CompanyLogoUrl;
}
<section id="title">
<div class="container">
Expand Down
10 changes: 10 additions & 0 deletions EmpleoDotNet/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
@Styles.Render("~/bundles/theme/css")
<link href="http://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:700" rel="stylesheet"/>
@RenderSection("styles", required: false)

@{
var ogTitle = String.IsNullOrEmpty(@ViewBag.Title) ? "Emplea.do" : @ViewBag.Title + " - Emplea.do";
var ogDescription = String.IsNullOrEmpty(ViewBag.Description) ? "Puestos de trabajo" : ViewBag.Description;
}
<meta property="og:title" content="@ogTitle">
<meta property="og:description" content="@ogDescription">
<meta property="og:type" content="website">
<meta property="og:url" content="http://emplea.do">
<meta property="og:image" content="@ViewBag.ImageUrl">
</head>
<body id="home">
<!-- ============ NAVBAR START ============ -->
Expand Down

0 comments on commit f81dd9c

Please sign in to comment.