Class: Jekyll::Locale::AutoPage

Inherits:
Page
  • Object
show all
Extended by:
Forwardable
Includes:
Helper
Defined in:
lib/jekyll/locale/auto_page.rb

Instance Attribute Summary collapse

Attributes included from Helper

#canon, #relative_path

Attributes inherited from Page

#path

Instance Method Summary collapse

Methods included from Helper

#inspect, #permalink, #setup_hreflangs, #setup_hreflangs?

Methods inherited from Page

#template

Constructor Details

#initialize(canon, locale) ⇒ AutoPage

Returns a new instance of AutoPage.



11
12
13
14
15
16
# File 'lib/jekyll/locale/auto_page.rb', line 11

def initialize(canon, locale)
  setup(canon, locale)
  @path    = canon.path
  @content = canon.content
  @data    = canon.data
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



8
9
10
# File 'lib/jekyll/locale/auto_page.rb', line 8

def content
  @content
end

#dataObject

Returns the value of attribute data.



8
9
10
# File 'lib/jekyll/locale/auto_page.rb', line 8

def data
  @data
end

#outputObject

Returns the value of attribute output.



8
9
10
# File 'lib/jekyll/locale/auto_page.rb', line 8

def output
  @output
end

Instance Method Details

#to_liquidObject



22
23
24
# File 'lib/jekyll/locale/auto_page.rb', line 22

def to_liquid
  @to_liquid ||= Locale::PageDrop.new(self)
end

#urlObject



18
19
20
# File 'lib/jekyll/locale/auto_page.rb', line 18

def url
  @url ||= File.join("", locale, canon.url)
end