Skip to content

Commit

Permalink
Add title and description metadata to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofandrin committed Jan 20, 2025
1 parent c892944 commit 80ea680
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/(general)/download/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Link from "next/link"
import Image from "next/image"
import type { Metadata } from "next"

import Button from "@/components/common/Button"
import DynamicButton from "@/components/download/DynamicButton"
Expand All @@ -8,6 +9,11 @@ import { getMacOSDownloadURL } from "@/utils/server/github"
import ImgAppPreview from "@/assets/images/app_preview_rename_success.png"
import SVGApple from "@/assets/icons/Apple.svg"

export const metadata: Metadata = {
title: "Download exifoo",
description: "Shoot more. Organize less. With exifoo you can keep your photos organized."
}

export default async function Download() {
const downloadURLMacOSArm64 = await getMacOSDownloadURL("arm64")
const downloadURLMacOSX64 = await getMacOSDownloadURL("x64")
Expand Down
8 changes: 8 additions & 0 deletions src/app/(general)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import type { Metadata } from "next"

import Navbar from "@/components/Navbar"
import Footer from "@/components/Footer"
import "../globals.css"

export const metadata: Metadata = {
title: "exifoo - Shoot more. Organize less.",
description:
"exifoo helps you keep your photos organized by adding the date and time of capture to the filename."
}

export default function RootLayout({
children
}: Readonly<{
Expand Down
6 changes: 6 additions & 0 deletions src/app/(general)/legal/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { Metadata } from "next"

import MarkdownContent from "@/components/common/MarkdownContent"
import MdLegalNotice from "@/content/legal/legal-notice.md"

export const metadata: Metadata = {
title: "Legal Notice - exifoo"
}

export default function LegalNotice() {
return (
<div className="flex flex-col items-center">
Expand Down
6 changes: 6 additions & 0 deletions src/app/(general)/privacy/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { Metadata } from "next"

import MarkdownContent from "@/components/common/MarkdownContent"
import MdPrivacyPolicy from "@/content/privacy/privacy-policy.md"
import "@/styles/privacy/PrivacyPolicy.css"

export const metadata: Metadata = {
title: "Privacy Policy - exifoo"
}

export default function PrivacyPolicy() {
return (
<div className="flex flex-col items-center">
Expand Down
7 changes: 7 additions & 0 deletions src/app/(general)/release-notes/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import type { Metadata } from "next"

import MarkdownContent from "@/components/common/MarkdownContent"
import { extractMarkdownMetaData } from "@/utils/helpers"

export const metadata: Metadata = {
title: "Release Notes - exifoo",
description: "Latest changes of the exifoo desktop app."
}

export default function ReleaseNotes() {
const importAllFiles = (r: any) => r.keys().map(r)
const markdownFiles = importAllFiles(require.context("../../../content/release-notes", false, /\.md$/))
Expand Down
6 changes: 6 additions & 0 deletions src/app/[...not-found]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import type { Metadata } from "next"

import "../globals.css"

export const metadata: Metadata = {
title: "Page not found - exifoo"
}

export default function RootLayout({
children
}: Readonly<{
Expand Down

0 comments on commit 80ea680

Please sign in to comment.