Module: Jekyll::Permalink
- Defined in:
- lib/jekyll-multiple-languages-plugin.rb
Overview
Include (with priority—prepend)the translated permanent link for Page and document
Instance Method Summary collapse
-
#permalink ⇒ Object
permalink ======================================.
Instance Method Details
#permalink ⇒ Object
permalink
241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/jekyll-multiple-languages-plugin.rb', line 241 def permalink return nil if data.nil? || data['permalink'].nil? if site.config['relative_permalinks'] File.join(@dir, data['permalink']) else # Look if there's a permalink overwrite specified for this lang data['permalink_'+site.config['lang']] || data['permalink'] end end |