Class Jekyll::Page
In: lib/jekyll/page.rb
Parent: Object

Methods

destination   dir   html?   index?   inspect   new   permalink   process   render   template   to_liquid   url   write  

Included Modules

Convertible

Attributes

basename  [RW] 
content  [RW] 
data  [RW] 
dir  [W] 
ext  [RW] 
name  [RW] 
output  [RW] 
pager  [RW] 
site  [RW] 

Public Class methods

Initialize a new Page.

site - The Site object. base - The String path to the source. dir - The String path between the source and the file. name - The String filename of the file.

Public Instance methods

Obtain destination path.

dest - The String path to the destination dir.

Returns the destination file path String.

The generated directory into which the page will be placed upon generation. This is derived from the permalink or, if permalink is absent, we be ’/’

Returns the String destination directory.

Returns the Boolean of whether this Page is HTML or not.

Returns the Boolean of whether this Page is an index file or not.

Returns the object as a debug String.

The full path and filename of the post. Defined in the YAML of the post body.

Returns the String permalink or nil if none has been set.

Extract information from the page filename.

name - The String filename of the page file.

Returns nothing.

Add any necessary layouts to this post

layouts - The Hash of {"name" => "layout"}. site_payload - The site payload Hash.

Returns nothing.

The template of the permalink.

Returns the template String.

Convert this Page‘s data to a Hash suitable for use by Liquid.

Returns the Hash representation of this Page.

The generated relative url of this page. e.g. /about.html.

Returns the String url.

Write the generated page file to the destination directory.

dest - The String path to the destination dir.

Returns nothing.

[Validate]