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
breadcrumbs(lang = nil)
What to show as breadcrumbs for this post
date
dependencies
List of all files and kv store items this post uses
full_shortcodes_list(text)
Parse shortcodes in the text recursively
html(lang = nil)
language_links(lang : String | Nil = nil)
Get language alternate links for this post Returns an array of Hash for Crinja compatibility
link(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