summary: - adds prettier formatter configuration - formats the entire repo using prettier, ignoring minified files (`*.min.css`) and heavy generated html - changes extensions of all `.html` files to `.liquid`, which is more correct and necessary for prettier to work correctly - replaces "%-" and "-%" with just "%" — manual liquid formatting using minus signs is superfluous since we are compressing and minifying the code anyway - adds CI action for running prettier check on PR and pushes to master
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
---
|
|
layout: default
|
|
---
|
|
<div class="post">
|
|
<header class="post-header">
|
|
<h1 class="post-title"><i class="fa-solid fa-calendar fa-sm"></i> {{ page.date | date: '%Y' }}</h1>
|
|
<p class="post-description">an archive of posts from this year</p>
|
|
</header>
|
|
|
|
<article>
|
|
<div class="table-responsive">
|
|
<table class="table table-sm table-borderless">
|
|
{% for post in page.posts %}
|
|
<tr>
|
|
<th scope="row">{{ post.date | date: '%b %d, %Y' }}</th>
|
|
<td>
|
|
{% if post.redirect == blank %}
|
|
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
|
{% elsif post.redirect contains '://' %}
|
|
<a class="post-link" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
|
|
{% else %}
|
|
<a class="post-link" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</article>
|
|
</div>
|