2023-08-08 21:01:13 +01:00
|
|
|
@page
|
2023-08-06 15:57:23 +01:00
|
|
|
@model OliverBooth.Pages.Blog.Index
|
|
|
|
|
2023-08-10 14:08:22 +01:00
|
|
|
<div id="all-blog-posts">
|
2023-08-11 02:06:31 +01:00
|
|
|
@await Html.PartialAsync("_LoadingSpinner")
|
2023-08-10 04:56:12 +01:00
|
|
|
</div>
|
|
|
|
|
2023-08-10 14:36:51 +01:00
|
|
|
<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>
|
2023-08-10 15:32:34 +01:00
|
|
|
<abbr title="{{ post.formattedDate }}">{{ post.date_humanized }}</abbr>
|
2023-08-10 14:36:51 +01:00
|
|
|
{{#if post.enable_comments}}
|
|
|
|
<span> • </span>
|
|
|
|
<a href="{{post.url}}#disqus_thread" data-disqus-identifier="{{post.disqus_identifier}}">
|
2023-08-10 16:14:30 +01:00
|
|
|
Loading comment count …
|
2023-08-08 01:30:32 +01:00
|
|
|
</a>
|
2023-08-10 14:36:51 +01:00
|
|
|
{{/if}}
|
|
|
|
</p>
|
2023-08-08 21:01:13 +01:00
|
|
|
|
2023-08-10 14:36:51 +01:00
|
|
|
<p>{{{post.excerpt}}}</p>
|
2023-08-08 21:01:13 +01:00
|
|
|
|
2023-08-10 14:36:51 +01:00
|
|
|
{{#if post.trimmed}}
|
|
|
|
<p>
|
|
|
|
<a href="{{post.url}}">
|
|
|
|
Read more...
|
|
|
|
</a>
|
2023-08-08 01:30:32 +01:00
|
|
|
</p>
|
2023-08-10 14:36:51 +01:00
|
|
|
{{/if}}
|
2023-08-08 01:30:32 +01:00
|
|
|
</div>
|
2023-08-10 15:15:36 +01:00
|
|
|
</script>
|