Last active
December 31, 2015 16:22
-
-
Save kgiszewski/c5900db868ef799bd1cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
Layout = "Base.cshtml"; | |
} | |
@section FooterScripts { | |
<script src="/assets/scripts/jquery.parallax.js"></script> | |
} | |
<section id="main" class="about-me"> | |
<div class="blog"> | |
<section class="parallaxModule title" data-parallax="scroll" data-image-src="/assets/images/bass.jpg"> | |
<div class="container"> | |
<h1>About Me</h1> | |
</div> | |
</section> | |
</div> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<!-- content here --> | |
</div> | |
@Html.Partial("~/Views/Partials/Portfolio.cshtml") | |
<div class="col-md-12"> | |
<h3>Ideal Clients</h3> | |
<!-- content here --> | |
</div> | |
</div> | |
</div> | |
@Html.Partial("~/Views/Partials/ServiceBreaks.cshtml") | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using G42.UmbracoGrease.G42RedirectHelper | |
@using G42.UmbracoGrease.Reports.PetaPocoModels | |
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
Layout = "Base.cshtml"; | |
var statusCode = Model.Content.GetPropertyValue<int>("httpStatusCode"); | |
RedirectHelper.SetHttpStatus(statusCode);//not Umbraco, my custom helper | |
} | |
<div id="main" class="error-page"> | |
<div class="container-fluid"> | |
<section class="parallaxModule" data-parallax="scroll" data-image-src="/assets/images/sketch.jpg?width=1200"> | |
</section> | |
</div> | |
<div class="container"> | |
<h2>@Model.Content.Name</h2> | |
@Html.Raw(Model.Content.GetPropertyValue<string>("text")) | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using G42.UmbracoGrease.G42NodeHelper | |
@using KGLLC.Umbraco.Helpers | |
@inherits UmbracoTemplatePage | |
@{ | |
Layout = "Base.cshtml"; | |
} | |
<section id="main" class="blog"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8"> | |
<!-- NodeHelper is a custom bit of code, Umbraco has ways to traverse the tree structure natively --> | |
<!-- after the 'Home' portion of this code, it's all Umbraco --> | |
@foreach (var blog in NodeHelper.Instance.CurrentSite.Home.Children.First(x => x.DocumentTypeAlias == "BlogsFolder").Descendants("BlogPostPage").OrderByDescending(x => x.ToPublishedDate()).Take(2)) | |
{ | |
@(Html.Partial("~/Views/Partials/BlogTease.cshtml", blog)) | |
} | |
</div> | |
<div class="col-md-4 right-column"> | |
@Html.Partial("~/Views/Partials/RecentBlogList.cshtml") | |
@Html.Partial("~/Views/Partials/Portfolio.cshtml") | |
</div> | |
</div> | |
</div> | |
@Html.Partial("~/Views/Partials/ServiceBreaks.cshtml") | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment