PardallMarkdown.Content.Repository (PardallMarkdown v0.1.0)
Link to this section Summary
Functions
Rebuild indexes and then notify with a custom callback that the content has been reloaded.
Link to this section Functions
Link to this function
get_all_links(type \\ :all)
Link to this function
get_all_posts(type \\ :all)
Link to this function
get_all_published()
Link to this function
get_by_slug(slug)
Link to this function
get_by_slug!(slug)
Link to this function
get_content_tree(slug \\ "/")
Link to this function
get_taxonomy_tree()
Link to this function
init()
Link to this function
push_post(path, attrs, content, type \\ :post)
Link to this function
rebuild_indexes()
Rebuild indexes and then notify with a custom callback that the content has been reloaded.
The notification can be used, for example, to perform a Phoenix.Endpoint
broadcast, then a website which implements Phoenix.Channel
or Phoenix.LiveVew
can react accordingly.
The notification callback must be put inside the application configuration key :notify_content_reloaded
.
Example:
config :pardall_markdown, PardallMarkdown.Content,
notify_content_reloaded: &Website.notify/0