Astral.Plugin.Feed (Astral v0.2.3)

Copy Markdown View Source

Generated Atom feed plugin.

The plugin uses XM rather than hand-written XML strings. It is a small, plugin-shaped baseline for blogs and changelogs.

Options

  • :site_url - required absolute site URL, for example "https://example.com".
  • :collection - collection name to publish. Defaults to :posts.
  • :title - feed title. Defaults to "Feed".
  • :author - feed author. Defaults to "Astral".
  • :entry_author - optional string or one-arity function for per-entry authors.
  • :path - feed route path. Defaults to "/feed.xml".
  • :limit - max entries. Defaults to 20.
  • :include_drafts - include draft entries when present. Defaults to false.
  • :summary - optional one-arity function for entry summaries.
  • :content - :html, :text, or false. Defaults to :html.

Summary

Functions

Build an Atom content node for an entry.

Functions

entry_content(entry, arg2)

Build an Atom content node for an entry.