Get latest post and display on homepage
This commit is contained in:
parent
9e35d0ab90
commit
15b01412f2
3 changed files with 36 additions and 4 deletions
|
@ -1,6 +1,20 @@
|
|||
@{
|
||||
@using Website.Models;
|
||||
@model BlogPost;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Home";
|
||||
}
|
||||
@section CSS{
|
||||
h3 a {
|
||||
color:inherit;
|
||||
}
|
||||
}
|
||||
|
||||
<p>Hi, I'm Rob. I'm a senior software engineer at <a href="https://www.codecomputerlove.com/">Code Computerlove</a>.</p>
|
||||
<p>If you wish to get in contact, then get in touch via my <a href="http://uk.linkedin.com/in/robertmarshall/"><img alt="LinkedIn profile" src="https://static.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png" title=""></a></p>
|
||||
<p>If you wish to get in contact, then get in touch via my <a href="http://uk.linkedin.com/in/robertmarshall/"><img alt="LinkedIn profile" src="https://static.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png" title=""></a></p>
|
||||
<hr />
|
||||
<h2>Latest Blog Post</h2>
|
||||
<h3><a href="/blog/view/@Model.Url">@Model.Title</a></h3>
|
||||
@Model.Content
|
||||
<small>Posted on @Model.Timestamp.ToString()</small>
|
||||
<p><a href="/blog/view/@Model.Url>">Read more...</a></p>
|
Loading…
Add table
Add a link
Reference in a new issue