From 0fa43704eabbad60b21cad9279cf106dfe8852c7 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 8 Aug 2023 21:01:13 +0100 Subject: [PATCH] style: add alt to author image, reorder anchor attrs --- OliverBooth/Pages/Blog/Article.cshtml | 19 ++++++++++++++----- OliverBooth/Pages/Blog/Index.cshtml | 14 ++++++++------ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/OliverBooth/Pages/Blog/Article.cshtml b/OliverBooth/Pages/Blog/Article.cshtml index d54ed45..a75a161 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml +++ b/OliverBooth/Pages/Blog/Article.cshtml @@ -1,5 +1,6 @@ @page "/blog/{year:int}/{month:int}/{day:int}/{slug}" @using Humanizer +@using OliverBooth.Data.Blog @using OliverBooth.Services @model OliverBooth.Pages.Blog.Article @inject BlogService BlogService @@ -9,6 +10,11 @@ return; } +@{ + Author author = Model.Author; + DateTimeOffset published = post.Published; +} +