2023-08-08 21:01:13 +01:00
|
|
|
@page
|
2023-08-12 20:13:47 +01:00
|
|
|
@model Index
|
2023-08-06 15:57:23 +01:00
|
|
|
|
2023-08-11 02:08:03 +01:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Blog";
|
|
|
|
}
|
|
|
|
|
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">
|
2023-09-23 22:09:26 +01:00
|
|
|
<div class="card-header">
|
|
|
|
<span class="text-muted">
|
2023-08-10 14:36:51 +01:00
|
|
|
<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}}
|
2023-09-23 22:09:26 +01:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<h2>
|
|
|
|
<a href="{{post.url}}"> {{post.title}}</a>
|
|
|
|
</h2>
|
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-09-23 22:08:25 +01:00
|
|
|
<div class="card-footer">
|
|
|
|
{{#each post.tags}}
|
2023-09-24 17:15:40 +01:00
|
|
|
<a href="?tag={{urlEncode this}}" class="badge text-bg-dark">{{this}}</a>
|
2023-09-23 22:08:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
2023-08-10 15:15:36 +01:00
|
|
|
</script>
|