Class Jekyll::Site
In: lib/jekyll/site.rb
Parent: Object

Methods

Attributes

categories  [RW] 
config  [RW] 
dest  [RW] 
exclude  [RW] 
layouts  [RW] 
lsi  [RW] 
permalink_style  [RW] 
posts  [RW] 
pygments  [RW] 
source  [RW] 
tags  [RW] 

Public Class methods

Initialize the site

  +config+ is a Hash containing site configurations details

Returns <Site>

Public Instance methods

Filter out any files/directories that are hidden or backup files (start with "." or "#" or end with "~") or contain site content (start with "_") unless they are "_posts" directories or web server files such as ’.htaccess‘

Paginates the blog‘s posts. Renders the index.html file into paginated directories, ie: page2, page3… and adds more wite-wide data

{"paginator" => { "page" => <Number>,

                  "per_page" => <Number>,
                  "posts" => [<Post>],
                  "total_posts" => <Number>,
                  "total_pages" => <Number>,
                  "previous_page" => <Number>,
                  "next_page" => <Number> }}

Constructs a hash map of Posts indexed by the specified Post attribute

Returns {post_attr => [<Post>]}

Do the actual work of processing the site and generating the real deal.

Returns nothing

Read all the files in <source>/_layouts into memory for later use.

Returns nothing

Read all the files in <base>/_posts and create a new Post object with each one.

Returns nothing

The Hash payload containing site-wide data

Returns {"site" => {"time" => <Time>,

                    "posts" => [<Post>],
                    "categories" => [<Post>]}

Copy all regular files from <source> to <dest>/ ignoring any files/directories that are hidden or backup files (start with "." or "#" or end with "~") or contain site content (start with "_") unless they are "_posts" directories or web server files such as ’.htaccess‘

  The +dir+ String is a relative path used to call this method
           recursively as it descends through directories

Returns nothing

Write each post to <dest>/<year>/<month>/<day>/<slug>

Returns nothing

[Validate]