Skip to content

Commit ea1259c

Browse files
committed
suggest prettier extension because there was already a config
1 parent e48a9ec commit ea1259c

File tree

10 files changed

+299
-192
lines changed

10 files changed

+299
-192
lines changed

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
22
"singleQuote": true,
3+
"printWidth": 100
34
}

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"sissel.shopify-liquid",
4+
"esbenp.prettier-vscode"
5+
]
6+
}

_config.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ languages: ["en", "de", "pl", "ru"]
5454
exclude_from_localizations: ["assets", "admin", "vendor"]
5555
header_themes:
5656
- url: /about
57-
text: about
57+
key: about.label
5858
- url: /news
59-
text: articles
59+
key: news.label
6060
- url: /press
61-
text: Press
61+
key: press
6262
- url: /events
63-
text: events
63+
key: events.label
6464
- url: /works-councils
65-
text: Works Councils
65+
key: works_councils.label
6666
footer_links:
6767
- url: /learning
6868
text: Learning Group
@@ -92,7 +92,9 @@ defaults:
9292
type: "events"
9393
values:
9494
layout: "event"
95+
namespace: event
9596
- scope:
9697
type: "news"
9798
values:
9899
layout: "news"
100+
namespace: news

_includes/breadcrumbs.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% if page.namespace != 'index' %}
2+
<div id="breadcrumbs">
3+
{% assign crumbs = page.url | remove: '/index.html' | split: '/' %}
4+
<a href="/{% if site.lang != 'en' %}{{site.lang}}{% endif %}">{% t home.label %}</a>
5+
{% for crumb in crumbs offset: 1 %}
6+
{% if forloop.last %}
7+
/ {{ crumb | capitalize }}
8+
{% else %}
9+
/
10+
<a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace: '-', ' ' | remove: '.html' | capitalize }}</a>
11+
{% endif %}
12+
{% endfor %}
13+
</div>
14+
{% endif %}

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
5-
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
5+
<title>{% if page.title %}{{ page.title | escape }} | {{site.title}} {% else %}{{ site.title | escape }}{% endif %}</title>
66
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
77
<style>
88
{% capture styles %}

0 commit comments

Comments
 (0)