struct Pages::PageFolderIndex

Overview

Represents a folder index for pages (not posts)

Defined in:

pages.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : Path, content_path : Path) #

[View source]

Instance Method Detail

def breadcrumbs : Array(NamedTuple(name: String, link: String)) #

Get breadcrumbs for this folder index


[View source]
def immediate_contents : NamedTuple(subdirs: Array(NamedTuple(link: String, name: String)), files: Array(NamedTuple(link: String, title: String))) #

Get immediate contents (non-recursive) for this folder


[View source]
def output : Path #

Get the output path for this index


[View source]
def rendered : String #

Render the folder index HTML


[View source]
def title : String #

Get the title for this folder index


[View source]