From a158866ca1d27415ee898bab80640cd840cba577 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 28 Dec 2024 21:12:20 -0800 Subject: [PATCH] Feature: meta description setting (#4513) --- docs/configs/settings.md | 8 ++++++++ src/pages/_document.jsx | 4 ---- src/pages/index.jsx | 7 +++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/configs/settings.md b/docs/configs/settings.md index 5fe30874f..5a32c139f 100644 --- a/docs/configs/settings.md +++ b/docs/configs/settings.md @@ -13,6 +13,14 @@ You can customize the title of the page if you'd like. title: My Awesome Homepage ``` +## Description + +You can customize the description of the page if you'd like. + +```yaml +description: A description of my awesome homepage +``` + ## Start URL You can customize the start_url as required for installable apps. The default is "/". diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index e69ca0079..310834386 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -4,10 +4,6 @@ export default function Document() { return ( - diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 78af79992..7dbadbf1e 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -359,6 +359,13 @@ function Home({ initialSettings }) { <> {initialSettings.title || "Homepage"} + {settings.base && } {settings.favicon ? ( <>