@raystack/chronicle 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/head.tsx +2 -1
package/package.json
CHANGED
package/src/lib/head.tsx
CHANGED
|
@@ -9,8 +9,9 @@ export interface HeadProps {
|
|
|
9
9
|
markdownHref?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export function Head({ title, description, config, jsonLd, markdownHref }: HeadProps) {
|
|
12
|
+
export function Head({ title, description: pageDescription, config, jsonLd, markdownHref }: HeadProps) {
|
|
13
13
|
const { pathname } = useLocation();
|
|
14
|
+
const description = pageDescription || config.site.description;
|
|
14
15
|
const fullTitle = `${title} | ${config.site.title}`;
|
|
15
16
|
const ogParams = new URLSearchParams({ title });
|
|
16
17
|
if (description) ogParams.set('description', description);
|