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
22 lines
838 B
Plaintext
22 lines
838 B
Plaintext
{% assign repo_url = include.repository | split: '/' %}
|
|
{% if site.data.repositories.github_users contains repo_url.first %}
|
|
{% assign show_owner = false %}
|
|
{% else %}
|
|
{% assign show_owner = true %}
|
|
{% endif %}
|
|
|
|
<div class="repo p-2 text-center">
|
|
<a href="https://github.com/{{ include.repository }}">
|
|
<img
|
|
class="repo-img-light w-100"
|
|
alt="{{ include.repository }}"
|
|
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_light }}&show_owner={{ show_owner }}"
|
|
>
|
|
<img
|
|
class="repo-img-dark w-100"
|
|
alt="{{ include.repository }}"
|
|
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_dark }}&show_owner={{ show_owner }}"
|
|
>
|
|
</a>
|
|
</div>
|