style: add header to blog cards

This commit is contained in:
Oliver Booth 2023-09-23 22:09:26 +01:00
parent a9c4b3a144
commit 5283985026
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -10,12 +10,8 @@
</div> </div>
<script id="blog-post-template" type="text/x-handlebars-template"> <script id="blog-post-template" type="text/x-handlebars-template">
<div class="card-body"> <div class="card-header">
<h2> <span class="text-muted">
<a href="{{post.url}}"> {{post.title}}</a>
</h2>
<p class="text-muted">
<img class="blog-author-icon" src="{{author.avatar}}" alt="{{author.name}}"> <img class="blog-author-icon" src="{{author.avatar}}" alt="{{author.name}}">
<span>{{author.name}}<span> <span>{{author.name}}<span>
<span> &bull; </span> <span> &bull; </span>
@ -26,7 +22,12 @@
Loading comment count &hellip; Loading comment count &hellip;
</a> </a>
{{/if}} {{/if}}
</p> </span>
</div>
<div class="card-body">
<h2>
<a href="{{post.url}}"> {{post.title}}</a>
</h2>
<p>{{{post.excerpt}}}</p> <p>{{{post.excerpt}}}</p>