diff --git a/deno.json b/deno.json index ceb3b9d6..d95a01f3 100644 --- a/deno.json +++ b/deno.json @@ -87,7 +87,22 @@ "lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"], "jsx": "precompile", "jsxImportSource": "preact", - "jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"] + "jsxPrecompileSkipElements": [ + "a", + "img", + "source", + "body", + "html", + "head", + "title", + "meta", + "script", + "link", + "style", + "base", + "noscript", + "template" + ] }, "lint": { "rules": { diff --git a/docs/canary/advanced/head.md b/docs/canary/advanced/head.md new file mode 100644 index 00000000..844c97ce --- /dev/null +++ b/docs/canary/advanced/head.md @@ -0,0 +1,76 @@ +--- +description: Modify the document head in Fresh +--- + +The +[`
`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/head)-element +is a crucial element in HTML to set metadata for a page. It allows you to: + +- Set the document title with `