Skip to content

Commit cba6269

Browse files
committed
Add Prettier hook; format Liquid templates
1 parent b9b66c7 commit cba6269

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ repos:
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
11+
- repo: https://github.com/pre-commit/mirrors-prettier
12+
rev: v3.1.0
13+
hooks:
14+
- id: prettier

_includes/news.liquid

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
{% else %}
2424
<a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a>
2525
{% unless include.limit %}
26-
<p class="news-preview" style="margin: 0.25em 0 0; font-size: 0.9em; color: var(--global-text-color-light);">{{ item.content | strip_html | truncatewords: 50 }}</p>
26+
<p class="news-preview" style="margin: 0.25em 0 0; font-size: 0.9em; color: var(--global-text-color-light);">
27+
{{ item.content | strip_html | truncatewords: 50 }}
28+
</p>
2729
{% endunless %}
2830
{% endif %}
2931
</td>

_layouts/cv.liquid

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ layout: default
7272
<div class="card mt-3 p-3">
7373
<h3 class="card-title font-weight-medium">Resume Preview</h3>
7474
<div>
75-
<embed src="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url }}" type="application/pdf" width="100%" height="800px" style="border: none;" />
75+
<embed
76+
src="{{ page.cv_pdf | prepend: 'assets/pdf/' | relative_url }}"
77+
type="application/pdf"
78+
width="100%"
79+
height="800px"
80+
style="border: none;"
81+
>
7682
</div>
7783
</div>
7884
{% endif %}

0 commit comments

Comments
 (0)