Class: Jekyll::Page
- Inherits:
-
Object
- Object
- Jekyll::Page
- Defined in:
- lib/jekyll-multiple-languages-plugin.rb
Overview
class Page
Instance Method Summary collapse
-
#permalink ⇒ Object
permalink ======================================.
Instance Method Details
#permalink ⇒ Object
permalink
162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/jekyll-multiple-languages-plugin.rb', line 162 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 |