Get the latest commit and show it on the home page

This commit is contained in:
Robert Marshall 2020-04-05 07:42:22 +01:00
parent ffb3e791ab
commit 5d67e92245
23 changed files with 233 additions and 60 deletions

View file

@ -1,4 +1,5 @@
@model BlogPostViewModel
@using Website.Extensions
@model HomeViewModel
@{
ViewData["Title"] = "Welcome";
@ -7,7 +8,17 @@
<p>Hello, I'm Rob. I'm a senior software engineer at <a href="https://www.codecomputerlove.com/">Code Computerlove</a> where I focus on back end development primarily using C#. In my spare time I spend my time riding bikes or making stuff, typically involving an Arduino.</p>
<p>This website is primarily an outlet for me to write about things which have been technically challenging, either in a professional or personal capacity, though not limited to that.</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>
<h2>Latest code commit</h2>
<table class="commit-table">
<tr><td>Repository</td><td><a href="@Model.GitCommit.RepositoryUrl">@Model.GitCommit.RepositoryName</a></td></tr>
<tr><td>Branch</td><td>@Model.GitCommit.BranchName</td></tr>
<tr><td>SHA</td><td><a href="@Model.GitCommit.CommitUrl">@Model.GitCommit.Hash</a></td></tr>
<tr><td>Message</td><td>@Model.GitCommit.CommitMessage</td></tr>
<tr><td>Timestamp</td><td>@Model.GitCommit.Timestamp</td></tr>
</table>
<h2>Latest Blog Post</h2>
<h3><a href="/blog/view/@Model.Url">@Model.Title</a></h3>
<partial name="~/Views/Blog/Entry.cshtml" , model="Model" />
<h3><a href="/blog/view/@Model.BlogPost.Url">@Model.BlogPost.Title</a></h3>
<partial name="~/Views/Blog/Entry.cshtml" , model="Model.BlogPost" />
<p><a href="/blog">View more</a></p>

View file

@ -1,4 +1,4 @@
@model IEnumerable<Website.Models.GitRepository>
@model IEnumerable<Website.Models.Git.Repository>
<h5>Projects:</h5>
<ul class="nav-list">