1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 23:20:51 -05:00

refactor note processing functions

This commit is contained in:
2025-03-28 09:22:04 -04:00
parent 2d42a7447e
commit 264fd92379
7 changed files with 96 additions and 69 deletions

View File

@@ -1,7 +1,10 @@
import defaultMetadata from "../config/metadata";
import type { Metadata } from "next";
// helper function to deep merge a page's metadata into the default site metadata
/**
* Helper function to deep merge a page's metadata into the default site metadata
* @see https://nextjs.org/docs/app/api-reference/functions/generate-metadata
*/
export const addMetadata = (metadata: Metadata): Metadata => {
return {
...defaultMetadata,