Markdown::File
A class representing a Markdown file
Constructors
Instance methods
List of all files and kv store items this post uses.
Memoized: Markdown.render computes it once per post in parallel, and the archive and every taxonomy then ask again for every post per language, on the main fiber. Nothing it depends on (source, template, shortcodes) changes while tasks are being declared.
True when the content shown for lang comes from another language's source file (only possible when content fallback is enabled)
Whether this post exists for the given language (it always does when content fallback is enabled)
The rendered HTML for this file, memoized per language because computing it means a markdown compile plus a full HTML parse, and it is needed several times per post (html, summary, teaser).
Get language alternate links for this post Returns an array of Hash for Crinja compatibility
Render the fragment from an already-built value() context, so callers that also need the value (page title, breadcrumbs, language links) build it once per page
kv:// inputs for the shortcode templates this post uses, so tasks that render it can declare them as dependencies
Check if the updated date should be shown (at least 1 minute different from post date)
Social-sharing metadata for this page (OpenGraph/Twitter cards):
an explicit description from the frontmatter, falling back to a
plain-text excerpt of the summary, and a preview_image (also
accepts cover_image or image) for the card thumbnail.
Social metadata from an already-built page: plain is the plain text of page_html when the caller has it (see value), so the description excerpt doesn't strip the HTML a second time