From 34e6fdb6c223306bdab18e6e67646c53e2cc6ead Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 3 Jun 2025 18:30:25 -0500 Subject: [PATCH] Refine site meta observability --- README.md | 4 ++-- app/layout.tsx | 8 ++++++-- src/admin/AdminAppConfigurationClient.tsx | 6 +++--- src/app/Nav.tsx | 12 +++++++----- src/app/config.ts | 14 +++++++------- src/image-response/HomeImageResponse.tsx | 4 ++-- 6 files changed, 27 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 488e542e..df5ee718 100644 --- a/README.md +++ b/README.md @@ -111,8 +111,8 @@ Application behavior can be changed by configuring the following environment var #### Content - `NEXT_PUBLIC_META_TITLE` (seen in search results and browser tab) - `NEXT_PUBLIC_META_DESCRIPTION` (seen in search results) -- `NEXT_PUBLIC_NAV_TITLE` (defaults to domain when not configured) -- `NEXT_PUBLIC_NAV_CAPTION` (seen in navigation, beneath title) +- `NEXT_PUBLIC_NAV_TITLE` (seen in top-right navigation, defaults to domain when not configured) +- `NEXT_PUBLIC_NAV_CAPTION` (seen in top-right navigation, beneath title) - `NEXT_PUBLIC_PAGE_ABOUT` (seen in grid sidebar—accepts rich formatting tags: ``, ``, ``, ``, ``, `
`) - `NEXT_PUBLIC_DOMAIN_SHARE` (seen in share modals where a shorter url may be desirable) diff --git a/app/layout.tsx b/app/layout.tsx index db805fda..b1202329 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,9 +6,10 @@ import { DEFAULT_THEME, PRESERVE_ORIGINAL_UPLOADS, META_DESCRIPTION, - NAV_TITLE_OR_DOMAIN, + NAV_TITLE, META_TITLE, HTML_LANG, + NAV_CAPTION, } from '@/app/config'; import AppStateProvider from '@/state/AppStateProvider'; import ToasterWithThemes from '@/toast/ToasterWithThemes'; @@ -90,7 +91,10 @@ export default function RootLayout({ 'mx-3 mb-3', 'lg:mx-6 lg:mb-6', )}> -