class Markdown::File

Overview

A class representing a Markdown file

Direct Known Subclasses

Defined in:

markdown.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(sources : Hash(String, String), base : Path) #

Initialize the post with proper data


[View source]

Class Method Detail

def self.posts #

[View source]

Instance Method Detail

def <=>(other : File) #

[View source]
def _replace_shortcodes(text : String) : String #

[View source]
def breadcrumbs(lang = nil) #

What to show as breadcrumbs for this post


[View source]
def date : Time | Nil #

[View source]
def dependencies : Array(String) #

List of all files and kv store items this post uses


[View source]
def full_shortcodes_list(text) #

Parse shortcodes in the text recursively


[View source]
def html(lang = nil) #

[View source]
def link(lang = nil) #

[View source]
def load(lang = nil) : Nil #

Load the post from disk (for current language only)


[View source]
def metadata(lang = nil) #

[View source]
def output(lang = nil) #

[View source]
def rendered(lang = nil) #

Render the markdown HTML into the right template for the fragment


[View source]
def replace_shortcodes(lang) #

[View source]
def shortcodes(lang = nil) #

[View source]
def source(lang = nil) #

[View source]
def summary(lang = nil) #

[View source]
def taxonomies #

[View source]
def template(lang = nil) #

Path for the Templates::Template this post should be rendered with


[View source]
def text(lang = nil) #

[View source]
def title(lang = nil) #

[View source]
def to_s(io) #

[View source]
def toc(lang = nil) #

[View source]
def value(lang = nil) #

Return a value Crinja can use in templates


[View source]