Oliver Booth
e8bc50bbdf
I'd ideally like to keep the blog. subdomain the same, and while there are a few ways to achieve this it is much simpler to just dedicate a separate application for the subdomain. This change also adjusts the webhost builder extensions to default to ports 443/80, and each app now explicitly sets the port it needs.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
@page
|
|
@model Index
|
|
|
|
@{
|
|
ViewData["Title"] = "Blog";
|
|
}
|
|
|
|
<div id="all-blog-posts">
|
|
@await Html.PartialAsync("_LoadingSpinner")
|
|
</div>
|
|
|
|
<script id="blog-post-template" type="text/x-handlebars-template">
|
|
<div class="card-body">
|
|
<h2>
|
|
<a href="{{post.url}}"> {{post.title}}</a>
|
|
</h2>
|
|
|
|
<p class="text-muted">
|
|
<img class="blog-author-icon" src="{{author.avatar}}" alt="{{author.name}}">
|
|
<span>{{author.name}}<span>
|
|
<span> • </span>
|
|
<abbr title="{{ post.formattedDate }}">{{ post.date_humanized }}</abbr>
|
|
{{#if post.enable_comments}}
|
|
<span> • </span>
|
|
<a href="{{post.url}}#disqus_thread" data-disqus-identifier="{{post.disqus_identifier}}">
|
|
Loading comment count …
|
|
</a>
|
|
{{/if}}
|
|
</p>
|
|
|
|
<p>{{{post.excerpt}}}</p>
|
|
|
|
{{#if post.trimmed}}
|
|
<p>
|
|
<a href="{{post.url}}">
|
|
Read more...
|
|
</a>
|
|
</p>
|
|
{{/if}}
|
|
</div>
|
|
</script>
|