refactor(blog): use /blog prefix for article endpoints
This commit is contained in:
parent
dc83309db7
commit
193b2486a1
|
@ -1,4 +1,4 @@
|
||||||
@page "/{year:int}/{month:int}/{day:int}/{slug}"
|
@page "/blog/{year:int}/{month:int}/{day:int}/{slug}"
|
||||||
@using Humanizer
|
@using Humanizer
|
||||||
@using OliverBooth.Data.Blog
|
@using OliverBooth.Data.Blog
|
||||||
@model Article
|
@model Article
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
@page "/{year:int}/{month:int}/{day:int}/{slug}/raw"
|
@page "/blog/{year:int}/{month:int}/{day:int}/{slug}/raw"
|
||||||
@model RawArticle
|
@model RawArticle
|
|
@ -48,7 +48,7 @@ class UI {
|
||||||
post: {
|
post: {
|
||||||
title: post.title,
|
title: post.title,
|
||||||
excerpt: post.excerpt,
|
excerpt: post.excerpt,
|
||||||
url: `${post.url.year}/${post.url.month}/${post.url.day}/${post.url.slug}`,
|
url: `/blog/${post.url.year}/${post.url.month}/${post.url.day}/${post.url.slug}`,
|
||||||
date: TimeUtility.formatRelativeTimestamp(post.published),
|
date: TimeUtility.formatRelativeTimestamp(post.published),
|
||||||
formattedDate: post.formattedDate,
|
formattedDate: post.formattedDate,
|
||||||
date_humanized: `${post.updated ? "Updated" : "Published"} ${post.humanizedTimestamp}`,
|
date_humanized: `${post.updated ? "Updated" : "Published"} ${post.humanizedTimestamp}`,
|
||||||
|
|
Loading…
Reference in New Issue