Skip to content

Commit

Permalink
Fix/hreflang (#74)
Browse files Browse the repository at this point in the history
* Sat Dec 24 12:57:46 MST 2016

* missed attribute in i18n_headers

* removed built site files

* :gem: 1.3.1
  • Loading branch information
untra committed Sep 2, 2017
1 parent 0684b07 commit f3aaf34
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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']
Expand Down
4 changes: 2 additions & 2 deletions lib/jekyll/polyglot/liquid/tags/i18n-headers.rb
Expand Up @@ -14,11 +14,11 @@ def render(context)
permalink = context.registers[:page]['permalink']
site_url = @url.empty? ? site.config['url'] : @url
i18n = "<meta http-equiv=\"Content-Language\" content=\"#{site.active_lang}\">\n"
i18n += "<link rel=\"alternate\" i18n=\"#{site.default_lang}\" "\
i18n += "<link rel=\"alternate\" hreflang=\"#{site.default_lang}\" "\
"href=\" #{site_url}#{permalink}\"/>\n"
site.languages.each do |lang|
next if lang == site.default_lang
i18n += "<link rel=\"alternate\" i18n=\"#{lang}\" "\
i18n += "<link rel=\"alternate\" hreflang=\"#{lang}\" "\
"href=\"#{site_url}/#{lang}#{permalink}\"/>\n"
end
i18n
Expand Down
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion site/_config.yml
Expand Up @@ -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
Expand Down

0 comments on commit f3aaf34

Please sign in to comment.