mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-06-28 23:40:21 +08:00
Update metadata
This commit is contained in:
parent
47d15f2b02
commit
f9563ad359
@ -8,7 +8,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
const totalIcons = icons.length
|
const totalIcons = icons.length
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: "Browse Icons | Dashboard Icons",
|
title: "Browse Icons | Free Dashboard Icons",
|
||||||
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
||||||
keywords: [
|
keywords: [
|
||||||
"browse icons",
|
"browse icons",
|
||||||
@ -21,7 +21,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
"app directory",
|
"app directory",
|
||||||
],
|
],
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Browse Dashboard Icons Collection",
|
title: "Browse Icons | Free Dashboard Icons",
|
||||||
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
||||||
type: "website",
|
type: "website",
|
||||||
url: `${BASE_URL}/icons`,
|
url: `${BASE_URL}/icons`,
|
||||||
@ -37,7 +37,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
},
|
},
|
||||||
twitter: {
|
twitter: {
|
||||||
card: "summary_large_image",
|
card: "summary_large_image",
|
||||||
title: "Browse Dashboard Icons Collection",
|
title: "Browse Icons | Free Dashboard Icons",
|
||||||
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
||||||
images: ["/og-image-browse.png"],
|
images: ["/og-image-browse.png"],
|
||||||
},
|
},
|
||||||
|
@ -8,6 +8,7 @@ import { Inter } from "next/font/google"
|
|||||||
import { Toaster } from "sonner"
|
import { Toaster } from "sonner"
|
||||||
import "./globals.css"
|
import "./globals.css"
|
||||||
import { ThemeProvider } from "./theme-provider"
|
import { ThemeProvider } from "./theme-provider"
|
||||||
|
import { getDescription, websiteTitle } from "@/constants"
|
||||||
|
|
||||||
const inter = Inter({
|
const inter = Inter({
|
||||||
variable: "--font-inter",
|
variable: "--font-inter",
|
||||||
@ -29,8 +30,8 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
metadataBase: new URL("https://dashboardicons.com"),
|
metadataBase: new URL("https://dashboardicons.com"),
|
||||||
title: "Dashboard Icons - Your definitive source for dashboard icons",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
keywords: ["dashboard icons", "service icons", "application icons", "tool icons", "web dashboard", "app directory"],
|
keywords: ["dashboard icons", "service icons", "application icons", "tool icons", "web dashboard", "app directory"],
|
||||||
robots: {
|
robots: {
|
||||||
index: true,
|
index: true,
|
||||||
@ -44,8 +45,8 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
siteName: "Dashboard Icons",
|
siteName: "Dashboard Icons",
|
||||||
type: "website",
|
type: "website",
|
||||||
locale: "en_US",
|
locale: "en_US",
|
||||||
title: "Dashboard Icons - Your definitive source for dashboard icons",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
url: "https://dashboardicons.com",
|
url: "https://dashboardicons.com",
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
@ -61,8 +62,8 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
card: "summary_large_image",
|
card: "summary_large_image",
|
||||||
site: "@homarr_app",
|
site: "@homarr_app",
|
||||||
creator: "@homarr_app",
|
creator: "@homarr_app",
|
||||||
title: "Dashboard Icons - Your definitive source for dashboard icons",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
images: ["/og-image.png"],
|
images: ["/og-image.png"],
|
||||||
},
|
},
|
||||||
applicationName: "Dashboard Icons",
|
applicationName: "Dashboard Icons",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { HeroSection } from "@/components/hero"
|
import { HeroSection } from "@/components/hero"
|
||||||
import { RecentlyAddedIcons } from "@/components/recently-added-icons"
|
import { RecentlyAddedIcons } from "@/components/recently-added-icons"
|
||||||
import { BASE_URL, REPO_NAME } from "@/constants"
|
import { BASE_URL, getDescription, REPO_NAME, websiteTitle } from "@/constants"
|
||||||
import { getRecentlyAddedIcons, getTotalIcons } from "@/lib/api"
|
import { getRecentlyAddedIcons, getTotalIcons } from "@/lib/api"
|
||||||
import type { Metadata } from "next"
|
import type { Metadata } from "next"
|
||||||
|
|
||||||
@ -8,12 +8,12 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
const { totalIcons } = await getTotalIcons()
|
const { totalIcons } = await getTotalIcons()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: "Dashboard Icons - Beautiful icons for your dashboard",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
keywords: ["dashboard icons", "service icons", "application icons", "tool icons", "web dashboard", "app directory"],
|
keywords: ["dashboard icons", "service icons", "application icons", "tool icons", "web dashboard", "app directory"],
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Dashboard Icons - Your definitive source for dashboard icons",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
type: "website",
|
type: "website",
|
||||||
url: BASE_URL,
|
url: BASE_URL,
|
||||||
images: [
|
images: [
|
||||||
@ -26,8 +26,8 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
twitter: {
|
twitter: {
|
||||||
title: "Dashboard Icons - Your definitive source for dashboard icons",
|
title: websiteTitle,
|
||||||
description: `A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`,
|
description: getDescription(totalIcons),
|
||||||
card: "summary_large_image",
|
card: "summary_large_image",
|
||||||
images: ["/og-image.png"],
|
images: ["/og-image.png"],
|
||||||
},
|
},
|
||||||
|
@ -3,3 +3,8 @@ export const REPO_PATH = "https://github.com/homarr-labs/dashboard-icons"
|
|||||||
export const METADATA_URL = "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/refs/heads/main/metadata.json"
|
export const METADATA_URL = "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/refs/heads/main/metadata.json"
|
||||||
export const WEB_URL = "https://dashboardicons.com"
|
export const WEB_URL = "https://dashboardicons.com"
|
||||||
export const REPO_NAME = "homarr-labs/dashboard-icons"
|
export const REPO_NAME = "homarr-labs/dashboard-icons"
|
||||||
|
|
||||||
|
export const getDescription = (totalIcons: number) =>
|
||||||
|
`A collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`
|
||||||
|
|
||||||
|
export const websiteTitle = "Free Dashboard Icons - Download High-Quality UI & App Icons"
|
Loading…
x
Reference in New Issue
Block a user