Currently, passing metadata, links (e.g. stylesheets), scripts, etc can only be done programatically on a per-route basis or at any given layout using <head> or creating a custom fresh plugin to simply inject this (e.g. via middleware). A new module should be provided to allow to more easily configure the head (global) to the project:
Currently, passing metadata, links (e.g. stylesheets), scripts, etc can only be done programatically on a per-route basis or at any given layout using
<head>
or creating a custom fresh plugin to simply inject this (e.g. via middleware). A new module should be provided to allow to more easily configure the head (global) to the project:NOTE: the
title
anddescription
andfavicon
fields should be ported from theappLayout
plugin to here.Notes
These functions can use the following
injectStylesheet
andinjectScript
utilities fromnetzo/modules/utils.ts
: