diff --git a/_includes/author-profile.html b/_includes/author-profile.html index e256ec7dd18f..6215f7fa270e 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -23,7 +23,7 @@
- {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} + {{ site.data.ui-text[page.locale].categories_label | default: "Categories:" }} {% for category_word in categories_sorted %} {{ category_word }}{% unless forloop.last %}, {% endunless %} diff --git a/_includes/comments-providers/staticman.html b/_includes/comments-providers/staticman.html index ae3991d9d619..975342b6f8f6 100644 --- a/_includes/comments-providers/staticman.html +++ b/_includes/comments-providers/staticman.html @@ -5,7 +5,7 @@ var form = this; $(form).addClass('disabled'); - $('#comment-form-submit').html(' {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}'); + $('#comment-form-submit').html(' {{ site.data.ui-text[page.locale].loading_label | default: "Loading..." }}'); $.ajax({ type: $(this).attr('method'), @@ -13,17 +13,17 @@ data: $(this).serialize(), contentType: 'application/x-www-form-urlencoded', success: function (data) { - $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}'); + $('#comment-form-submit').html('{{ site.data.ui-text[page.locale].comment_btn_submitted | default: "Submitted" }}'); $('.page__comments-form .js-notice').removeClass('notice--danger'); $('.page__comments-form .js-notice').addClass('notice--success'); - showAlert('{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}'); + showAlert('{{ site.data.ui-text[page.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}'); }, error: function (err) { console.log(err); - $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}'); + $('#comment-form-submit').html('{{ site.data.ui-text[page.locale].comment_btn_submit | default: "Submit Comment" }}'); $('.page__comments-form .js-notice').removeClass('notice--success'); $('.page__comments-form .js-notice').addClass('notice--danger'); - showAlert('{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}'); + showAlert('{{ site.data.ui-text[page.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}'); $(form).removeClass('disabled'); } }); diff --git a/_includes/comments-providers/staticman_v2.html b/_includes/comments-providers/staticman_v2.html index 3d8ba1112b73..4fa2e98869a9 100644 --- a/_includes/comments-providers/staticman_v2.html +++ b/_includes/comments-providers/staticman_v2.html @@ -5,7 +5,7 @@ var form = this; $(form).addClass('disabled'); - $('#comment-form-submit').html(' {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}'); + $('#comment-form-submit').html(' {{ site.data.ui-text[page.locale].loading_label | default: "Loading..." }}'); $.ajax({ type: $(this).attr('method'), @@ -13,17 +13,17 @@ data: $(this).serialize(), contentType: 'application/x-www-form-urlencoded', success: function (data) { - $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}'); + $('#comment-form-submit').html('{{ site.data.ui-text[page.locale].comment_btn_submitted | default: "Submitted" }}'); $('.page__comments-form .js-notice').removeClass('notice--danger'); $('.page__comments-form .js-notice').addClass('notice--success'); - showAlert('{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}'); + showAlert('{{ site.data.ui-text[page.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}'); }, error: function (err) { console.log(err); - $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}'); + $('#comment-form-submit').html('{{ site.data.ui-text[page.locale].comment_btn_submit | default: "Submit Comment" }}'); $('.page__comments-form .js-notice').removeClass('notice--success'); $('.page__comments-form .js-notice').addClass('notice--danger'); - showAlert('{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}'); + showAlert('{{ site.data.ui-text[page.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}'); $(form).removeClass('disabled'); } }); diff --git a/_includes/comments.html b/_includes/comments.html index b27c893bbaf1..143ed6684e1b 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -1,5 +1,5 @@
{{ comments_label }}
@@ -16,7 +16,7 @@{{ comments_label }}
{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}
+{{ site.data.ui-text[page.locale].comments_title | default: "Comments" }}
{% assign comments = site.data.comments[page.slug] %}{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}
-{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *
+{{ site.data.ui-text[page.locale].comments_label | default: "Leave a Comment" }}
+{{ site.data.ui-text[page.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *
{{ site.data.ui-text[site.locale].comments_labe
{% if site.data.comments[page.slug] %}
-
-
diff --git a/_includes/footer.html b/_includes/footer.html
index 2b53a253ee93..38e28af93a77 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,7 +1,7 @@
-© {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} Jekyll & Minimal Mistakes.
+© {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. {{ site.data.ui-text[page.locale].powered_by | default: "Powered by" }} Jekyll & Minimal Mistakes.
diff --git a/_includes/masthead.html b/_includes/masthead.html
index 0c66aa65a4fd..abf07868fda9 100644
--- a/_includes/masthead.html
+++ b/_includes/masthead.html
@@ -20,12 +20,12 @@
{% if site.search == true %}
{% endif %}
{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}
+{{ site.data.ui-text[page.locale].comments_title | default: "Comments" }}
{% assign comments = site.data.comments[page.slug] %}{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}
-{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *
+{{ site.data.ui-text[page.locale].comments_label | default: "Leave a Comment" }}
+{{ site.data.ui-text[page.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *
- {% if site.data.ui-text[site.locale].follow_label %} -- {{ site.data.ui-text[site.locale].follow_label }}
+ {% if site.data.ui-text[page.locale].follow_label %}
+ - {{ site.data.ui-text[page.locale].follow_label }}
{% endif %}
{% if site.footer.links %}
@@ -13,9 +13,9 @@
{% endif %}
{% unless site.atom_feed.hide %}
- - {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}
+ - {{ site.data.ui-text[page.locale].feed_label | default: "Feed" }}
{% endunless %}
diff --git a/_includes/nav_list b/_includes/nav_list index a035a5bd7b15..dfda982b787c 100644 --- a/_includes/nav_list +++ b/_includes/nav_list @@ -3,7 +3,7 @@ diff --git a/_includes/post_pagination.html b/_includes/post_pagination.html index a93c6279763b..c86a36b66b04 100644 --- a/_includes/post_pagination.html +++ b/_includes/post_pagination.html @@ -1,14 +1,14 @@ {% if page.previous or page.next %} {% endif %} \ No newline at end of file diff --git a/_includes/search/algolia-search-scripts.html b/_includes/search/algolia-search-scripts.html index ba557c14f0d5..3daaa8dfd1eb 100644 --- a/_includes/search/algolia-search-scripts.html +++ b/_includes/search/algolia-search-scripts.html @@ -38,7 +38,7 @@
- + {%- when "google" -%}
diff --git a/_includes/seo.html b/_includes/seo.html
index c9d01e946a60..1ea58ed1c89e 100644
--- a/_includes/seo.html
+++ b/_includes/seo.html
@@ -47,7 +47,7 @@
{%- assign og_type = "website" -%}
{%- endif -%}
-{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}
+{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[page.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}
{% if author.name %}
@@ -58,7 +58,7 @@
{% endif %}
-
+
diff --git a/_includes/skip-links.html b/_includes/skip-links.html
index c2d52235e14f..ca1327aaf243 100644
--- a/_includes/skip-links.html
+++ b/_includes/skip-links.html
@@ -1,7 +1,7 @@
diff --git a/_includes/social-share.html b/_includes/social-share.html
index 0b377982b268..02d7601d790d 100644
--- a/_includes/social-share.html
+++ b/_includes/social-share.html
@@ -1,11 +1,11 @@
- {% if site.data.ui-text[site.locale].share_on_label %}
-
diff --git a/_includes/tag-list.html b/_includes/tag-list.html
index 5893ee4e4d46..af69b23be1f6 100644
--- a/_includes/tag-list.html
+++ b/_includes/tag-list.html
@@ -9,7 +9,7 @@
{% assign tags_sorted = page.tags | sort_natural %}
- {{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
+ {{ site.data.ui-text[page.locale].back_to_top | default: 'Back to Top' }} ↑
{% endif %}
{% endfor %}
diff --git a/_layouts/default.html b/_layouts/default.html
index fc6beea04d65..c633c0aa6378 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -8,7 +8,7 @@
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
-->
-
+
{% include head.html %}
{% include head/custom.html %}
diff --git a/_layouts/home.html b/_layouts/home.html
index 02e96eb81ca1..fa689db0d3b3 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -4,7 +4,7 @@
{{ content }}
-
{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}
+ {% if site.data.ui-text[page.locale].share_on_label %} +{{ site.data.ui-text[page.locale].share_on_label | default: "Share on" }}
{% endif %} - Twitter + Twitter - Facebook + Facebook - LinkedIn + LinkedIn- {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }} + {{ site.data.ui-text[page.locale].tags_label | default: "Tags:" }} {% for tag_word in tags_sorted %} {{ tag_word }}{% unless forloop.last %}, {% endunless %} diff --git a/_includes/toc b/_includes/toc index 6423ccdc72e1..4fafc5873422 100644 --- a/_includes/toc +++ b/_includes/toc @@ -1,6 +1,6 @@
{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}
+{{ site.data.ui-text[page.locale].recent_posts | default: "Recent Posts" }}
{% if paginator %} {% assign posts = paginator.posts %} diff --git a/_layouts/posts.html b/_layouts/posts.html index 13fc707cf00a..42691c9ba055 100644 --- a/_layouts/posts.html +++ b/_layouts/posts.html @@ -25,6 +25,6 @@{{ year.name }}
{% include archive-single.html type=entries_layout %} {% endfor %}{{ page.title }}
{%- assign search_provider = site.search_provider | default: "lunr" -%} {%- case search_provider -%} {%- when "lunr" -%} - + {%- when "google" -%}