class Books::BookChapter

Overview

Book chapter file that reuses Markdown::File but handles optional metadata

Defined in:

books.cr

Constructors

Instance Method Summary

Instance methods inherited from class Markdown::File

<=>(other : File) <=>, _replace_shortcodes(text : String) : String _replace_shortcodes, breadcrumbs(lang = nil) breadcrumbs, date : Time | Nil date, dependencies : Array(String) dependencies, full_shortcodes_list(text) full_shortcodes_list, html(lang = nil) html, language_links(lang : String | Nil = nil) language_links, link(lang = nil) link, load(lang = nil) : Nil load, metadata(lang = nil) metadata, output(lang = nil) output, related_posts(lang = nil) related_posts, rendered(lang = nil) rendered, replace_shortcodes(lang) replace_shortcodes, shortcodes(lang = nil) shortcodes, show_updated?(lang = nil) show_updated?, source(lang = nil) source, summary(lang = nil) summary, taxonomies taxonomies, taxonomy_terms(lang = nil) taxonomy_terms, template(lang = nil) template, text(lang = nil) text, title(lang = nil) title, to_s(io) to_s, toc(lang = nil) toc, value(lang = nil) value

Constructor methods inherited from class Markdown::File

new(sources : Hash(String, String), base : Path) new

Class methods inherited from class Markdown::File

posts posts

Constructor Detail

def self.new(sources, base, title_override : String | Nil = nil) #

[View source]

Instance Method Detail

def load(lang = nil) : Nil #

Override load to handle files WITHOUT metadata (book chapters have no metadata)


[View source]
def title_override : String | Nil #

[View source]
def title_override=(title_override : String | Nil) #

[View source]