From 4fd0b5d6121a1157d3aa1c889b1172eef9614413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Y=C3=9CCEL?= Date: Thu, 26 Sep 2024 22:17:16 +0300 Subject: [PATCH] Update meta.md Added favicon example code. --- docs/route/meta.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/route/meta.md b/docs/route/meta.md index aa63ba877d6..360096ccb32 100644 --- a/docs/route/meta.md +++ b/docs/route/meta.md @@ -66,6 +66,21 @@ export const meta: MetaFunction = () => { }; ``` +The code adds a [`` tag][link-element] tag for a favicon. + +```tsx +export const meta: MetaFunction = () => { + return [ + { + tagName: 'link', + rel: "icon", + href: "/favicon.png", + type: "image/png", + }, + ]; +}; +``` + ## `meta` Function Parameters ### `location`