From f3aaf3446c268d37a654910ddb22721a12de8fd3 Mon Sep 17 00:00:00 2001 From: Samuel Volin Date: Sat, 2 Sep 2017 08:25:28 -0600 Subject: [PATCH] Fix/hreflang (#74) * Sat Dec 24 12:57:46 MST 2016 * missed attribute in i18n_headers * removed built site files * :gem: 1.3.1 --- jekyll-polyglot.gemspec | 4 ++-- lib/jekyll/polyglot/liquid/tags/i18n-headers.rb | 4 ++-- lib/jekyll/polyglot/version.rb | 2 +- make.sh | 2 +- site/_config.yml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jekyll-polyglot.gemspec b/jekyll-polyglot.gemspec index cab51f1a..de3b7847 100644 --- a/jekyll-polyglot.gemspec +++ b/jekyll-polyglot.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'jekyll-polyglot' - s.version = '1.3.0' - s.date = '2017-07-23' + s.version = '1.3.1' + s.date = '2017-09-02' s.summary = 'I18n plugin for Jekyll Blogs' s.description = 'Fast open source i18n plugin for Jekyll blogs.' s.authors = ['Samuel Volin'] diff --git a/lib/jekyll/polyglot/liquid/tags/i18n-headers.rb b/lib/jekyll/polyglot/liquid/tags/i18n-headers.rb index ebf4ad74..1ae2ebcc 100644 --- a/lib/jekyll/polyglot/liquid/tags/i18n-headers.rb +++ b/lib/jekyll/polyglot/liquid/tags/i18n-headers.rb @@ -14,11 +14,11 @@ def render(context) permalink = context.registers[:page]['permalink'] site_url = @url.empty? ? site.config['url'] : @url i18n = "\n" - i18n += "\n" site.languages.each do |lang| next if lang == site.default_lang - i18n += "\n" end i18n diff --git a/lib/jekyll/polyglot/version.rb b/lib/jekyll/polyglot/version.rb index 81f7acb8..6c932584 100644 --- a/lib/jekyll/polyglot/version.rb +++ b/lib/jekyll/polyglot/version.rb @@ -1,5 +1,5 @@ module Jekyll module Polyglot - VERSION = '1.3.0'.freeze + VERSION = '1.3.1'.freeze end end diff --git a/make.sh b/make.sh index c3f29bde..1b8953cc 100755 --- a/make.sh +++ b/make.sh @@ -1,5 +1,5 @@ # /bin/sh -VERSION="1.3.0" +VERSION="1.3.1" gem build jekyll-polyglot.gemspec sudo gem install jekyll-polyglot-$VERSION.gem cd site diff --git a/site/_config.yml b/site/_config.yml index 2fbc017d..cae4b60e 100644 --- a/site/_config.yml +++ b/site/_config.yml @@ -47,7 +47,7 @@ url: https://polyglot.untra.io paginate: 5 # Custom vars -version: 1.3.0 +version: 1.3.1 github: repo: https://github.com/untra/polyglot