2023-08-08 20:01:13 +00:00
|
|
|
@page
|
2024-05-05 01:18:20 +00:00
|
|
|
@using OliverBooth.Common.Services
|
2023-08-12 19:13:47 +00:00
|
|
|
@model Index
|
2023-08-06 14:57:23 +00:00
|
|
|
|
2023-08-11 01:08:03 +00:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Blog";
|
|
|
|
}
|
|
|
|
|
2024-05-05 12:48:01 +00:00
|
|
|
@await Html.PartialAsync("Partials/_MastodonStatus")
|
2023-08-10 03:56:12 +00:00
|
|
|
|
2024-04-27 15:03:06 +00:00
|
|
|
<div id="all-blog-posts">
|
|
|
|
@await Html.PartialAsync("_LoadingSpinner")
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script id="blog-post-template" type="text/x-handlebars-template">
|
|
|
|
<div class="card-header">
|
|
|
|
<span 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>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<h2>
|
|
|
|
<a href="{{post.url}}"> {{post.title}}</a>
|
|
|
|
</h2>
|
2023-08-08 20:01:13 +00:00
|
|
|
|
2024-04-27 15:03:06 +00:00
|
|
|
<p>{{{post.excerpt}}}</p>
|
2023-08-08 20:01:13 +00:00
|
|
|
|
2024-04-27 15:03:06 +00:00
|
|
|
{{#if post.trimmed}}
|
|
|
|
<p>
|
|
|
|
<a href="{{post.url}}">
|
|
|
|
Read more...
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
{{#each post.tags}}
|
|
|
|
<a href="?tag={{urlEncode this}}" class="badge text-bg-dark">{{this}}</a>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</script>
|