Represents a post written in Markdown and stored in a file.
Parameters: source – path to the source file for the post.
Renders the Post as HTML using the template specified in
Parameters: all_posts – An optional
PostCollectioncontaining all of the posts in the site.
Returns: The rendered HTML as a string.
Plugins can call this method to modify post content that is written back to source post files. This method can be called at any time by anyone, but it has no effect if the caller is not granted the
MODIFY_RAW_POSTpermission in the Engineer configuration.
FINALIZE_METADATAsetting must also be enabled in order for calls to this method to have any effect.
- content – The modified post content that should be written back to the post source file.
- caller_class – The class of the plugin that’s calling this method.
Trueif the content was successfully modified; otherwise
The post’s content in HTML format.
The path to the template to use to transform the post content into HTML.
A dict of any custom metadata properties specified in the post.
Trueif the post is a draft,
Trueif the post has an associated external link.
Trueif the post is marked as published but has a timestamp set in the future.
Trueif the post is published,
The post’s external link.
The path to the template to use to transform the post back into a post source file.
The slug for the post.
The absolute path to the source file for the post.
The status of the post (published or draft).
The path to the template to use to transform the post into HTML.
The date/time the post was published or written.
timestampin ‘local’ time.
Local time is determined by the
The title of the post.
The date/time the post was updated.
The post’s attribution name.
The post’s attribution link.
A collection of
Returns a new PostCollection containing the subset of posts that are tagged with tag.
Returns a list of all the unique tags, as strings, that posts in the collection have.
Returns a new PostCollection containing the subset of posts that are drafts.
Returns a new PostCollection containing the subset of posts that are pending.
Returns a new PostCollection containing the subset of posts that are published.
Returns a new PostCollection containing the subset of posts whose status is