class

Markdown::File

Inherits Reference / Object

A class representing a Markdown file

Constructors

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

Initialize the post with proper data

Instance methods

<=>(other : File)
_replace_shortcodes(text : String) : String
date
dependencies

List of all files and kv store items this post uses

full_shortcodes_list(text)

Parse shortcodes in the text recursively

has_teaser?(lang = nil)

Check if this post has a teaser (uses <!--more--> or summary metadata)

html(lang = nil)
load(lang = nil) : Nil

Load the post from disk (for current language only)

metadata(lang = nil)
output(lang = nil)
rendered(lang = nil)

Render the markdown HTML into the right template for the fragment

replace_shortcodes(lang)
shortcodes(lang = nil)
show_updated?(lang = nil)

Check if the updated date should be shown (at least 1 minute different from post date)

source(lang = nil)
summary(lang = nil)
taxonomies
taxonomy_terms(lang = nil)
template(lang = nil)

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

text(lang = nil)
title(lang = nil)
to_s(io)
toc(lang = nil)
value(lang = nil)

Return a value Crinja can use in templates