-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix prettier liquid plugin to recognize html files
- Loading branch information
1 parent
9d79558
commit 7a7d958
Showing
15 changed files
with
195 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
{ | ||
"plugins": ["@shopify/prettier-plugin-liquid"], | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"overrides": [ | ||
{ | ||
"files": "*.html", | ||
"options": { | ||
"parser": "liquid-html", | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{% unless page.permalink == "/blog" %} | ||
<a href="/blog">{% t home.blog.more %}</a> | ||
{% unless page.permalink == '/blog' %} | ||
<a href="/blog">{% t home.blog.more %}</a> | ||
{% endunless %} | ||
<ul | ||
class="list -no-list-style l-stack -vertical" | ||
style="--stack-spacing: 1.5rem" | ||
> | ||
{% assign limit = include.limit %} {% assign sorted_posts = site.blog | | ||
filter_tags: include.tags | sort: 'date' | reverse %} {% for post in | ||
sorted_posts limit: limit %} {% assign author = site.data.authors[post.author] | ||
| default: site.data.authors['techworkersber'] %} | ||
{% assign limit = include.limit %} | ||
{% assign sorted_posts = site.blog | filter_tags: include.tags | sort: 'date' | reverse %} | ||
{% for post in sorted_posts limit: limit %} | ||
{% assign author = site.data.authors[post.author] | default: site.data.authors.techworkersber %} | ||
|
||
<li> | ||
<article | ||
class="event-card__info-column l-stack -vertical" | ||
style="--stack-spacing: 0.5rem" | ||
aria-labelledby="news-{{ post.title | slugify }}" | ||
> | ||
<section class="l-stack -horizontal" style="--stack-spacing: 1rem"> | ||
<div class="l-stack -horizontal" style="--stack-spacing: 0.25rem"> | ||
{% if author.picture %} | ||
<img | ||
class="h-rounded" | ||
style="--circle-size: 1.75rem" | ||
src="{{author.picture}}" | ||
alt="{{author.name}}" | ||
/> | ||
{% endif %} | ||
<span>{{ author.name }}</span> | ||
</div> | ||
<time class="aside" datetime="{{ post.date | date: '%Y-%m-%d' }}" | ||
>{{ post.date | localize: site.lang, '%-d %B %Y' }}</time | ||
> | ||
</section> | ||
{% if limit %} | ||
<h3 class="event-card__title" id="news-{{ post.title | slugify }}"> | ||
<a href="{{ post.url }}" class="event-card__link">{{ post.title }}</a> | ||
</h3> | ||
{% else %} | ||
<h2 class="event-card__title" id="news-{{ post.title | slugify }}"> | ||
<a href="{{ post.url }}" class="event-card__link">{{ post.title }}</a> | ||
</h2> | ||
{% endif %} | ||
</article> | ||
</li> | ||
<li> | ||
<article | ||
class="event-card__info-column l-stack -vertical" | ||
style="--stack-spacing: 0.5rem" | ||
aria-labelledby="news-{{ post.title | slugify }}" | ||
> | ||
<section class="l-stack -horizontal" style="--stack-spacing: 1rem"> | ||
<div class="l-stack -horizontal" style="--stack-spacing: 0.25rem"> | ||
{% if author.picture %} | ||
<img | ||
class="h-rounded" | ||
style="--circle-size: 1.75rem" | ||
src="{{author.picture}}" | ||
alt="{{author.name}}" | ||
> | ||
{% endif %} | ||
<span>{{ author.name }}</span> | ||
</div> | ||
<time class="aside" datetime="{{ post.date | date: '%Y-%m-%d' }}"> | ||
{{- post.date | localize: site.lang, '%-d %B %Y' -}} | ||
</time> | ||
</section> | ||
{% if limit %} | ||
<h3 class="event-card__title" id="news-{{ post.title | slugify }}"> | ||
<a href="{{ post.url }}" class="event-card__link">{{ post.title }}</a> | ||
</h3> | ||
{% else %} | ||
<h2 class="event-card__title" id="news-{{ post.title | slugify }}"> | ||
<a href="{{ post.url }}" class="event-card__link">{{ post.title }}</a> | ||
</h2> | ||
{% endif %} | ||
</article> | ||
</li> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
{% unless page.permalink == "/events" %} | ||
<a href="/events">{% t home.events.more %}</a> | ||
{% unless page.permalink == '/events' %} | ||
<a href="/events">{% t home.events.more %}</a> | ||
{% endunless %} | ||
<ul | ||
class="list -no-list-style l-stack -vertical" | ||
style="--stack-spacing: 1.5rem" | ||
role="list" | ||
> | ||
{% assign events = site.events | filter_tags: include.tags | reverse %} {% | ||
assign future_events = events | where_exp: "event", "event.date >= site.time" | ||
%} {% if include.limit and future_events.size > 0 %} {% for event in | ||
future_events reversed limit: include.limit %} {% include event-card.html %} | ||
{% endfor %} {% else %} {% for event in events limit: include.limit %} {% | ||
include event-card.html %} {% endfor %} {% endif %} | ||
{% assign events = site.events | filter_tags: include.tags | reverse %} | ||
{% assign future_events = events | where_exp: 'event', 'event.date >= site.time' %} | ||
{% if include.limit and future_events.size > 0 %} | ||
{% for event in future_events reversed limit: include.limit %} | ||
{% include event-card.html %} | ||
{% endfor %} | ||
{% else %} | ||
{% for event in events limit: include.limit %} | ||
{% include event-card.html %} | ||
{% endfor %} | ||
{% endif %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
{% unless page.hide_form %} | ||
<div class="social-links"> | ||
<form | ||
name="subscribe" | ||
class="join-form" | ||
method="POST" | ||
action="/welcome" | ||
data-netlify="true" | ||
> | ||
<div class="control"> | ||
<label for="name">{% t connect.name %}</label> | ||
<input class="input-text" id="name" type="text" required name="name" /> | ||
</div> | ||
<div class="control"> | ||
<label for="email">{% t connect.email %}</label> | ||
<input class="input-text" id="email" type="email" required name="email" /> | ||
</div> | ||
<div class="control"> | ||
<label for="social1">{% t connect.public_link %} #1</label> | ||
<input | ||
class="input-text" | ||
id="social1" | ||
required | ||
type="text" | ||
name="social_media_1" | ||
placeholder="{% t connect.public_link_placeholder %}" | ||
/> | ||
</div> | ||
<div class="control"> | ||
<label for="social2">{% t connect.public_link %} #2</label> | ||
<input | ||
class="input-text" | ||
id="social2" | ||
required | ||
type="text" | ||
name="social_media_2" | ||
placeholder="{% t connect.public_link_placeholder %}" | ||
/> | ||
</div> | ||
<div class="control"> | ||
<label for="company">{% t connect.company %}</label> | ||
<input | ||
class="input-text" | ||
required | ||
id="company" | ||
type="text" | ||
name="company" | ||
/> | ||
</div> | ||
<div class="social-links"> | ||
<form | ||
name="subscribe" | ||
class="join-form" | ||
method="POST" | ||
action="/welcome" | ||
data-netlify="true" | ||
> | ||
<div class="control"> | ||
<label for="name">{% t connect.name %}</label> | ||
<input class="input-text" id="name" type="text" required name="name"> | ||
</div> | ||
<div class="control"> | ||
<label for="email">{% t connect.email %}</label> | ||
<input class="input-text" id="email" type="email" required name="email"> | ||
</div> | ||
<div class="control"> | ||
<label for="social1">{% t connect.public_link %} #1</label> | ||
<input | ||
class="input-text" | ||
id="social1" | ||
required | ||
type="text" | ||
name="social_media_1" | ||
placeholder="{% t connect.public_link_placeholder %}" | ||
> | ||
</div> | ||
<div class="control"> | ||
<label for="social2">{% t connect.public_link %} #2</label> | ||
<input | ||
class="input-text" | ||
id="social2" | ||
required | ||
type="text" | ||
name="social_media_2" | ||
placeholder="{% t connect.public_link_placeholder %}" | ||
> | ||
</div> | ||
<div class="control"> | ||
<label for="company">{% t connect.company %}</label> | ||
<input | ||
class="input-text" | ||
required | ||
id="company" | ||
type="text" | ||
name="company" | ||
> | ||
</div> | ||
|
||
<div> | ||
<input class="input-text" id="referrer" type="hidden" name="referrer" /> | ||
</div> | ||
<div class="control"> | ||
<label for="how_did_hear">{% t connect.how_did_hear %}</label> | ||
<input | ||
class="input-text" | ||
id="how_did_hear" | ||
type="text" | ||
name="how_did_hear" | ||
/> | ||
</div> | ||
<div> | ||
<input class="input-text" id="referrer" type="hidden" name="referrer"> | ||
</div> | ||
<div class="control"> | ||
<label for="how_did_hear">{% t connect.how_did_hear %}</label> | ||
<input | ||
class="input-text" | ||
id="how_did_hear" | ||
type="text" | ||
name="how_did_hear" | ||
> | ||
</div> | ||
|
||
<button class="subscribe-button" type="submit"> | ||
{% t connect.subscribe %} | ||
</button> | ||
</form> | ||
</div> | ||
<button class="subscribe-button" type="submit"> | ||
{% t connect.subscribe %} | ||
</button> | ||
</form> | ||
</div> | ||
{% endunless %} |
Oops, something went wrong.