Brix.Meta (Brix v0.1.1)

Copy Markdown View Source

SEO metadata helpers with page/collection → site fallback.

Summary

Functions

Returns the resolved value for the given metadata field, falling back from the resource (Page or Collection) to the Site.

Functions

field(resource, site, atom)

@spec field(Brix.Page.t() | Brix.Collection.t(), Brix.Site.t(), atom()) ::
  String.t() | nil

Returns the resolved value for the given metadata field, falling back from the resource (Page or Collection) to the Site.

Supported fields: :title, :description, :og_title, :og_description, :og_image.