Skip to content

Commit

Permalink
add manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Oct 6, 2024
1 parent 7e45da5 commit 6fef562
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions public/favicon/site.webmanifest → public/favicon/web.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "Pastelog",
"short_name": "Pastelog",
"description": "Create Stunning AI Powered Rich notes with markdown Support",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{
"src": "/icon-192x192.png",
Expand All @@ -14,8 +19,5 @@
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
]
}
2 changes: 1 addition & 1 deletion src/app/(main)/logs/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export async function generateMetadata(
parent: ResolvingMetadata
): Promise<Metadata> {
const id = params.id

const log = await new LogService().fetchLogById(id);

return {
title: log?.title || "Pastelog",
description: log?.data || "PasteLog is a simple, fast, and powerful pastebin. It is powered by firebase in the backend. It allows you to publish your logs, and access them from anywhere and any device via a unique link.",
manifest: "/web.manifest",
}
}

Expand Down
1 change: 1 addition & 0 deletions src/app/(publish)/logs/publish/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function generateMetadata(
return {
title: log?.title || "Pastelog",
description: log?.data || "PasteLog is a simple, fast, and powerful pastebin. It is powered by firebase in the backend. It allows you to publish your logs, and access them from anywhere and any device via a unique link.",
manifest: "/web.manifest"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Pastelog",
description: "Create Stunning Rich Text Logs/Notes with markdown Support and Code Highlighting and share it with the world.",

manifest: "/web.manifest",
};
export default function RootLayout({
children,
Expand Down

0 comments on commit 6fef562

Please sign in to comment.