Edit homepage

This commit is contained in:
Robert Marshall 2020-01-04 17:23:59 +00:00
parent 5233513f45
commit 20859f5eae
3 changed files with 13 additions and 9 deletions

View file

@ -34,7 +34,11 @@ namespace Website
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
services.AddMvc(options => options.EnableEndpointRouting = false);
services.AddMvc(options => options.EnableEndpointRouting = false)
#if DEBUG
.AddRazorRuntimeCompilation()
#endif
;
}
private void RegisterRepositories(IServiceCollection services) =>
@ -46,7 +50,7 @@ namespace Website
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment() )
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}

View file

@ -1,14 +1,13 @@
@model BlogPostViewModel
@{
ViewData["Title"] = "Home";
ViewData["Title"] = "Welcome";
}
<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>
<hr />
<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 Blog Post</h2>
<h3><a href="/blog/view/@Model.Url">@Model.Title</a></h3>
@Html.Raw(Model.ContentHtml)
<small>Posted on @Model.Timestamp</small>
<partial name="~/Views/Blog/Entry.cshtml" , model="Model" />
<p><a href="/blog">View more</a></p>

View file

@ -11,6 +11,7 @@
<PackageReference Include="dapper" Version="2.0.30" />
<PackageReference Include="dapper.contrib" Version="2.0.30" />
<PackageReference Include="markdig" Version="0.18.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.0" />
<PackageReference Include="mysqlconnector" Version="0.61.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Pek.Markdig.HighlightJs" Version="0.5.1" />