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.
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.
Page titles may use snippets to render dynamic content. This function will resolve such snippets.
Renders all resource <link>
tags defined in the current layout.
Renders the Schema.org data defined in the current page.