-
Notifications
You must be signed in to change notification settings - Fork 16
reorganize, add realtime validation #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "singleQuote": true, | ||
| "printWidth": 100 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "recommendations": [ | ||
| "sissel.shopify-liquid", | ||
| "esbenp.prettier-vscode" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,15 +54,15 @@ languages: ["en", "de", "pl", "ru"] | |
| exclude_from_localizations: ["assets", "admin", "vendor"] | ||
| header_themes: | ||
| - url: /about | ||
| text: about | ||
| key: about.label | ||
| - url: /news | ||
| text: articles | ||
| key: news.label | ||
| - url: /press | ||
| text: Press | ||
| key: press | ||
| - url: /events | ||
| text: events | ||
| key: events.label | ||
| - url: /works-councils | ||
| text: Works Councils | ||
| key: works_councils.label | ||
| footer_links: | ||
| - url: /learning | ||
| text: Learning Group | ||
|
|
@@ -92,7 +92,9 @@ defaults: | |
| type: "events" | ||
| values: | ||
| layout: "event" | ||
| namespace: event | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just so I don't miss anything, these namespaces aren't used yet right? or are they for generating the breadcrumb? Because even a null namespace would confirm this is not an index page, the only time you use namespace logic in this PR? For other cases like translation, this would still be useful so can keep |
||
| - scope: | ||
| type: "news" | ||
| values: | ||
| layout: "news" | ||
| namespace: news | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {% if page.namespace != 'index' %} | ||
| <div id="breadcrumbs"> | ||
| {% assign crumbs = page.url | remove: '/index.html' | split: '/' %} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can remove |
||
| <a href="/{% if site.lang != 'en' %}{{site.lang}}{% endif %}">{% t home.label %}</a> | ||
| {% for crumb in crumbs offset: 1 %} | ||
| {% if forloop.last %} | ||
| / {{ crumb | capitalize }} | ||
| {% else %} | ||
| / | ||
| <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> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can remove |
||
| {% endif %} | ||
| {% endfor %} | ||
| </div> | ||
| {% endif %} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| <meta charset="utf-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> | ||
| <title>{% if page.title %}{{ page.title | escape }} | {{site.title}} {% else %}{{ site.title | escape }}{% endif %}</title> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not replace this with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea is to improve SEO by having both the page and site title together. the pipe character appears in the title |
||
| <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}"> | ||
| <style> | ||
| {% capture styles %} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke the text of menu, needs to be removed or have code updated first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not mean to push changes to this file, my bad