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
29 lines
947 B
Plaintext
29 lines
947 B
Plaintext
<table class="table table-cv table-sm table-borderless table-responsive table-cv-map">
|
|
{% assign skip_basics = 'image,profiles,location' | split: ',' %}
|
|
{% for content in data[1] %}
|
|
{%
|
|
if (content[1] == "") or (skip_basics contains
|
|
content[0])
|
|
%}
|
|
{% continue %}
|
|
{% endif %}
|
|
|
|
<tr>
|
|
<td class="p-1 pr-2 font-weight-bold">
|
|
<b>{{ content[0] | capitalize }}</b>
|
|
</td>
|
|
<td class="p-1 pl-2 font-weight-light text">
|
|
{% if content[0] == 'url' %}
|
|
<a href="{{ content[1] }}" target="_blank" rel="noopener noreferrer">{{ content[1] }}</a>
|
|
{% elsif content[0] == 'email' %}
|
|
<a href="mailto:{{ content[1] }}" target="_blank">{{ content[1] }}</a>
|
|
{% elsif content[0] == 'phone' %}
|
|
<a href="tel:{{ content[1] }}">{{ content[1] }}</a>
|
|
{% else %}
|
|
{{ content[1] }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|