View Source Beacon.Web.Layouts (Beacon v0.2.1)

Core layouts.

These functions are mostly used internally by Beacon but you can override the root layout in beacon_site so you should use the functions in this module to properly build your custom root layout to avoid breaking Beacon functionality.

See https://github.com/BeaconCMS/beacon/blob/main/lib/beacon/web/components/layouts/runtime.html.heex for reference.

Summary

Functions

Returns the path to the route that serves CSS and JS assets.

Returns the path to the live socket defined in the site configuration.

Renders all <meta> tags defined in the current page.

Returns the resolved page title.

Renders all resource <link> tags defined in the current layout.

Renders the Schema.org data defined in the current page.

Functions

Returns the path to the route that serves CSS and JS assets.

Link to this function

live_socket_path(assigns)

View Source

Returns the path to the live socket defined in the site configuration.

Link to this function

render_meta_tags(assigns)

View Source

Renders all <meta> tags defined in the current page.

Link to this function

render_page_title(assigns)

View Source

Returns the resolved page title.

Page titles may use snippets to render dynamic content. This function will resolve such snippets.

Link to this function

render_resource_links(assigns)

View Source

Renders all resource <link> tags defined in the current layout.

Renders the Schema.org data defined in the current page.