Edit homepage
This commit is contained in:
parent
5233513f45
commit
20859f5eae
3 changed files with 13 additions and 9 deletions
|
@ -34,7 +34,11 @@ namespace Website
|
||||||
|
|
||||||
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
|
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) =>
|
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.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||||
{
|
{
|
||||||
if (env.IsDevelopment() )
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
@model BlogPostViewModel
|
@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>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>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>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>
|
||||||
<hr />
|
<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>
|
<h2>Latest Blog Post</h2>
|
||||||
<h3><a href="/blog/view/@Model.Url">@Model.Title</a></h3>
|
<h3><a href="/blog/view/@Model.Url">@Model.Title</a></h3>
|
||||||
@Html.Raw(Model.ContentHtml)
|
<partial name="~/Views/Blog/Entry.cshtml" , model="Model" />
|
||||||
<small>Posted on @Model.Timestamp</small>
|
<p><a href="/blog">View more</a></p>
|
||||||
<p><a href="/blog">View more</a></p>
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<PackageReference Include="dapper" Version="2.0.30" />
|
<PackageReference Include="dapper" Version="2.0.30" />
|
||||||
<PackageReference Include="dapper.contrib" Version="2.0.30" />
|
<PackageReference Include="dapper.contrib" Version="2.0.30" />
|
||||||
<PackageReference Include="markdig" Version="0.18.0" />
|
<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="mysqlconnector" Version="0.61.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="Pek.Markdig.HighlightJs" Version="0.5.1" />
|
<PackageReference Include="Pek.Markdig.HighlightJs" Version="0.5.1" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue