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
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
<div class="list-groups">
|
|
{% assign certificates = data[1] | sort: 'date' | reverse %}
|
|
{% for content in certificates %}
|
|
<div class="list-group col-md-6">
|
|
<table class="table-cv list-group-table">
|
|
<tbody>
|
|
<tr>
|
|
{% if content.icon %}
|
|
<td class="list-group-category-icon">
|
|
<i class="{{ content.icon }}"></i>
|
|
</td>
|
|
{% else %}
|
|
<td class="list-group-category-icon"></td>
|
|
{% endif %}
|
|
<!-- Calculate colspan number for category title -->
|
|
{% assign i = 1 %}
|
|
{% for item in content.items %}
|
|
{% assign i = i | plus: 1 %}
|
|
{% endfor %}
|
|
<td colspan="{{ i }}" class="list-group-category">
|
|
<a href="{{ content.url | default: # }}">{{ content.name }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td class="list-group-name">
|
|
<b>{{ content.issuer }}</b>
|
|
</td>
|
|
<td class="list-group-name">{{ content.date }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|