Class: Stic::Generators::Page
- Inherits:
-
Static
- Object
- Stic::Generator
- Static
- Stic::Generators::Page
- 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
Instance Method Summary collapse
Methods inherited from Static
Methods inherited from Stic::Generator
#disabled?, #initialize, #name, #run
Constructor Details
This class inherits a constructor from Stic::Generator
Instance Method Details
#blob_class ⇒ Object
22 23 24 |
# File 'lib/stic/generators/page.rb', line 22 def blob_class ::Stic::Page end |
#path_default ⇒ Object
18 19 20 |
# File 'lib/stic/generators/page.rb', line 18 def path_default 'content' end |