PardallMarkdown.Content.Post (PardallMarkdown v0.4.4) View Source

Fields are self-explanatory. Some special notes:

  • :is_published: posts are added to the content trees and archives only when true. To retrieve unpublished (draft) posts you have to use PardallMarkdown.Repository.get_all_posts or PardallMarkdown.Repository.get_by_slug.
  • :toc: the generated table of content from the post's Markdown headers.
  • :type: a Post inside a taxonomy (i.e. inside a subfolder or subfolders) is of type :post (example: "/docs/intro"), a post inside the root folder is of type :page (example: "/about").
  • :metadata: additional metadata found in the post's Markdown file definition map.

Link to this section Summary

Link to this section Functions

Link to this function

changeset(model, params)

View Source