Class: Jekyll::ProjectPage

Inherits:
Page
  • Object
show all
Defined in:
lib/logtags.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir) ⇒ ProjectPage

Returns a new instance of ProjectPage.



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/logtags.rb', line 13

def initialize(site, base, dir)
  @site = site
  @base = base
  @dir = dir
  @name = 'index.html'

  self.process(@name)
  @path = site.layouts["project-home"].path
  self.read_yaml("", "") # uses path from above first

  self.data['title'] = "Projects"
end