module Pages

Defined in:

pages.cr

Constant Summary

EXCLUDED_DIRECTORIES = ["posts", "galleries", "listings", "books"]

Directories that generate their own indexes (excluded from page folder indexes)

Class Method Summary

Class Method Detail

def self.enable(is_enabled : Bool, content_path : Path, feature_set : Set(Totem::Any)) #

Enable pages feature Render pages last because it's a catchall and will find gallery posts, blog posts, etc.


[View source]
def self.generate_folder_indexes(content_path : Path) #

Generate folder indexes for page directories (non-posts, non-feature folders)


[View source]
def self.render_indexes(indexes : Array(PageFolderIndex), content_path : Path) #

Render all page folder indexes


[View source]
def self.scan_page_directories(content_path : Path) : Array(PageFolderIndex) #

Scan for page directories that need indexes


[View source]