diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fdca2d4..90e316b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## [3.3.5](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.5) + +### Enhancements + +- Add English default text `site.locale` strings [#407](https://github.com/mmistakes/minimal-mistakes/issues/407) +- Add Portuguese localized UI text. [#411](https://github.com/mmistakes/minimal-mistakes/pull/411) +- Add Italian localized UI text. [#409](https://github.com/mmistakes/minimal-mistakes/pull/409) + +### Bug Fixes + +### Maintenance + +- Remove unused Google AdSense variables in `_config.yml` [#404](https://github.com/mmistakes/minimal-mistakes/issues/404) +- Update `Gemfile` instructions for using `github-pages` vs. native `jekyll` gems. +- Disable `gems:` in `_config.yml` and enable plugins with Bundler instead. +- Add `repository` to `_config.yml` to suppress GitHub Pages error `Liquid Exception: No repo name found.` + ## [3.3.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.4) ### Enhancements diff --git a/Gemfile b/Gemfile index 62e0820d..6c08bcf0 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,24 @@ source "https://rubygems.org" -gem "github-pages" -# gem "jekyll-archives" -gem "wdm", "~> 0.1.0" if Gem.win_platform? \ No newline at end of file +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! + +gem "github-pages", group: :jekyll_plugins + +# If you want to use Jekyll native, uncomment the line below. +# To upgrade, run `bundle update`. + +# gem "jekyll" + +gem "wdm", "~> 0.1.0" if Gem.win_platform? + +# If you have any plugins, put them here! +group :jekyll_plugins do + # gem "jekyll-archives" +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 533608b0..6a5ea60a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -21,7 +21,7 @@ GEM ffi (1.9.14) ffi (1.9.14-x64-mingw32) gemoji (2.1.0) - github-pages (88) + github-pages (89) activesupport (= 4.2.7) github-pages-health-check (= 1.1.0) jekyll (= 3.1.6) @@ -35,7 +35,7 @@ GEM jekyll-sass-converter (= 1.3.0) jekyll-seo-tag (= 2.0.0) jekyll-sitemap (= 0.10.0) - jemoji (= 0.6.2) + jemoji (= 0.7.0) kramdown (= 1.11.1) liquid (= 3.0.6) listen (= 3.0.6) @@ -82,7 +82,8 @@ GEM jekyll-sitemap (0.10.0) jekyll-watch (1.5.0) listen (~> 3.0, < 3.1) - jemoji (0.6.2) + jemoji (0.7.0) + activesupport (~> 4.0) gemoji (~> 2.0) html-pipeline (~> 2.2) jekyll (>= 3.0) diff --git a/_config.yml b/_config.yml index bd2e2f08..319edecf 100644 --- a/_config.yml +++ b/_config.yml @@ -13,7 +13,7 @@ name : "Your Name" description : "An amazing website." url : # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" baseurl : # the subpath of your site, e.g. "/blog" -gh_repo : +repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" teaser : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png" # breadcrumbs : false # true, false (default) words_per_minute : 200 @@ -58,10 +58,6 @@ analytics: google: tracking_id : -# Google AdSense -google_ad_client : -google_ad_slot : - # Site Author author: @@ -157,20 +153,20 @@ timezone: # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones # Plugins -gems: - - jekyll-paginate - - jekyll-sitemap - - jekyll-gist - - jekyll-feed - - jemoji +# gems: +# - jekyll-paginate +# - jekyll-sitemap +# - jekyll-gist +# - jekyll-feed +# - jemoji # mimic GitHub Pages with --safe -whitelist: - - jekyll-paginate - - jekyll-sitemap - - jekyll-gist - - jekyll-feed - - jemoji +# whitelist: +# - jekyll-paginate +# - jekyll-sitemap +# - jekyll-gist +# - jekyll-feed +# - jemoji # Archives @@ -207,4 +203,4 @@ tag_archive: compress_html: clippings: all ignore: - envs: development + envs: development \ No newline at end of file diff --git a/_data/ui-text.yml b/_data/ui-text.yml index 9b80757d..13addada 100644 --- a/_data/ui-text.yml +++ b/_data/ui-text.yml @@ -132,6 +132,67 @@ tr: &DEFAULT_TR tr-TR: <<: *DEFAULT_TR +# Brazilian Portguese +# ----------------- +pt: &DEFAULT_PT + page : "Página" + pagination_previous : "Anterior" + pagination_next : "Próxima" + breadcrumb_home_label : "Home" + breadcrumb_separator : "/" + toc_label : "Nesta página" + ext_link_label : "Link direto" + less_than : "meno que" + minute_read : "minutos de leitura" + share_on_label : "Compartilhe em" + meta_label : + tags_label : "Tags:" + categories_label : "Categorias:" + date_label : "Atualizado em:" + comments_label : "Deixe um comentário" + more_label : "Aprenda Mais" + related_label : "Você Talvez Goste Também" + follow_label : "Acompanhe em" + feed_label : "Feed" + powered_by : "Feito com" + website_label : "Site" + email_label : "Email" + recent_posts : "Postagens recentes" + undefined_wpm : "Parâmetro indefinido em word_per_minute no _config.yml" +pt-BR: + <<: *DEFAULT_PT +pt-PT: + <<: *DEFAULT_PT + +# Italian +# ----------------- +it: &DEFAULT_IT + page : "Pagina" + pagination_previous : "Precedente" + pagination_next : "Prossima" + breadcrumb_home_label : "Home" + breadcrumb_separator : "/" + toc_label : "Indice della pagina" + ext_link_label : "Link" + less_than : "meno di" + minute_read : "minuto/i di lettura" + share_on_label : "Condividi" + meta_label : + tags_label : "Tags:" + categories_label : "Categorie:" + date_label : "Aggiornato:" + comments_label : "Scrivi un commento" + more_label : "Scopri di più" + related_label : "Potrebbe Piacerti Anche" + follow_label : "Segui:" + feed_label : "Feed" + powered_by : "Powered by" + website_label : "Website" + email_label : "Email" + recent_posts : "Articoli Recenti" + undefined_wpm : "Parametro words_per_minute non definito in _config.yml" +it-IT: + <<: *DEFAULT_IT # Another locale # -------------- diff --git a/_includes/author-profile.html b/_includes/author-profile.html index d07979f3..5fd8eecb 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -26,10 +26,10 @@
- {{ site.data.ui-text[site.locale].categories_label }}
+ {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }}
{% for hash in category_hashes %}
{% assign keyValue = hash | split: '#' %}
diff --git a/_includes/comments.html b/_includes/comments.html
index 03a8c64c..a01af60f 100644
--- a/_includes/comments.html
+++ b/_includes/comments.html
@@ -1,7 +1,7 @@
{% include base_path %}
" | remove: " {{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label }}
- {{ site.data.ui-text[site.locale].tags_label }}
+ {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }}
{% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %}
diff --git a/_layouts/single.html b/_layouts/single.html
index 8c5fd0f8..3629aa62 100644
--- a/_layouts/single.html
+++ b/_layouts/single.html
@@ -35,7 +35,7 @@ layout: default
{% if paginator %}
- {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page }} {{ paginator.page }}{% endunless %}
+ {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
{% else %}
{{ page.title | default: site.title | markdownify | remove: "
{{ site.data.ui-text[site.locale].share_on_label }}
+ {{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}
{% endif %}
- Twitter
+ Twitter
- Facebook
+ Facebook
- Google+
+ Google+
- LinkedIn
+ LinkedIn
{{ site.data.ui-text[site.locale].comments_label }}
+{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}
{% case site.comments.provider %} {% when "disqus" %} diff --git a/_includes/feature_row b/_includes/feature_row index 10592b7e..b84f36b2 100644 --- a/_includes/feature_row +++ b/_includes/feature_row @@ -42,7 +42,7 @@ {% endif %} {% if f.url %} -{{ f.btn_label | default: site.data.ui-text[site.locale].more_label }}
+{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}
{% endif %}