Class: Stic::Generators::Page

Inherits:
Static show all
Defined in:
lib/stic/generators/page.rb

Overview

The page generators adds page blobs for each page from define directory. Pages are printable content that may have a front matter and can be converted to HTML.

The source path for pages will be taken from generator config key ‘path` and defaults to `./pages`.

You can override the path in your site configuration:

generators:
  pages:
    path: ./custom_pages

Instance Attribute Summary

Attributes inherited from Stic::Generator

#config, #site

Instance Method Summary collapse

Methods inherited from Static

#full_path, #path, #run

Methods inherited from Stic::Generator

#disabled?, #initialize, #name, #run

Constructor Details

This class inherits a constructor from Stic::Generator

Instance Method Details

#blob_classObject



22
23
24
# File 'lib/stic/generators/page.rb', line 22

def blob_class
  ::Stic::Page
end

#path_defaultObject



18
19
20
# File 'lib/stic/generators/page.rb', line 18

def path_default
  'content'
end