mirror of
https://github.com/acid-info/logos-ordinals-dashboard.git
synced 2025-02-10 04:14:22 +00:00
feat: add favicon and og
This commit is contained in:
parent
f5a5037f5b
commit
078e1a7f66
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 6.2 KiB |
BIN
public/og.png
Normal file
BIN
public/og.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 259 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.4 MiB |
@ -1,5 +1,4 @@
|
|||||||
import { siteConfigs } from '@/configs/site.configs'
|
import { siteConfigs } from '@/configs/site.configs'
|
||||||
import { getOpenGraphImageUrl } from '@/utils/og.utils'
|
|
||||||
import { getWebsiteUrl } from '@/utils/route.utils'
|
import { getWebsiteUrl } from '@/utils/route.utils'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
|
||||||
@ -33,11 +32,12 @@ export default function SEO({
|
|||||||
pagePath = '',
|
pagePath = '',
|
||||||
noIndex = false,
|
noIndex = false,
|
||||||
}: Metadata) {
|
}: Metadata) {
|
||||||
const ogImageUrl =
|
// const ogImageUrl =
|
||||||
imageUrl ||
|
// imageUrl ||
|
||||||
getOpenGraphImageUrl({
|
// getOpenGraphImageUrl({
|
||||||
pagePath,
|
// pagePath,
|
||||||
})
|
// })
|
||||||
|
const ogImageUrl = `${getWebsiteUrl()}/og.png`
|
||||||
|
|
||||||
const title = _title || siteConfigs.title
|
const title = _title || siteConfigs.title
|
||||||
const description = _description || siteConfigs.description
|
const description = _description || siteConfigs.description
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export const getWebsiteUrl = () => {
|
export const getWebsiteUrl = () => {
|
||||||
if (typeof window === 'undefined')
|
if (typeof window === 'undefined')
|
||||||
// return process.env.NEXT_PUBLIC_SITE_URL || 'https://dev.new-acid-info.vercel.app'
|
// return process.env.NEXT_PUBLIC_SITE_URL || 'https://dev.new-acid-info.vercel.app'
|
||||||
return 'https://logos-ordinals-dashboard.vercel.app'
|
return 'https://dashboard.logos.co'
|
||||||
|
|
||||||
const url = new URL(window.location.href)
|
const url = new URL(window.location.href)
|
||||||
return url.origin
|
return url.origin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user