A configured content collection plus helpers for working with discovered entries.
Summary
Functions
Return entries for a collection from a discovered site.
Return a DateTime for an entry using normalized updated, date, then Unix epoch.
Return entries that are not marked as drafts in schema-normalized data.
Sort entries by schema-normalized updated or date.
Return unique string tags from schema-normalized entry data.
Types
Functions
@spec entries(Astral.Site.t(), atom()) :: [Astral.Entry.t()]
Return entries for a collection from a discovered site.
@spec entry_datetime(Astral.Entry.t()) :: DateTime.t()
Return a DateTime for an entry using normalized updated, date, then Unix epoch.
@spec published([Astral.Entry.t()]) :: [Astral.Entry.t()]
Return entries that are not marked as drafts in schema-normalized data.
@spec sort_by_date([Astral.Entry.t()], :asc | :desc) :: [Astral.Entry.t()]
Sort entries by schema-normalized updated or date.
@spec tags([Astral.Entry.t()]) :: [String.t()]
Return unique string tags from schema-normalized entry data.