@ -1,7 +1,7 @@
|
||||
---
|
||||
import Favicon from 'components/layouts/Favicon/Favicon.astro'
|
||||
import type IconPNG from 'assets/layouts/Head/favicon.png'
|
||||
import IconSVG from 'assets/layouts/Head/favicon.svg'
|
||||
import IconPNG from 'assets/layouts/Head/favicon.png'
|
||||
import Favicon from 'components/layouts/Favicon/Favicon.astro'
|
||||
|
||||
export interface Props {
|
||||
/**
|
||||
@ -29,7 +29,7 @@ export interface Props {
|
||||
*/
|
||||
twitter?: {
|
||||
title?: string | undefined
|
||||
card?: "summary" | "summary_large_image" | "app" | "player" | undefined
|
||||
card?: 'summary' | 'summary_large_image' | 'app' | 'player' | undefined
|
||||
site?: string | undefined
|
||||
creator?: string | undefined
|
||||
} | undefined
|
||||
@ -46,9 +46,14 @@ export interface Props {
|
||||
|
||||
const props = Astro.props
|
||||
|
||||
const image = props.image ? Array.isArray(props.image) ? props.image : [props.image] : undefined
|
||||
const image = props.image ? (Array.isArray(props.image) ? props.image : [props.image]) : undefined
|
||||
|
||||
const canonical = typeof Astro.props.canonical === 'string' ? Astro.props.canonical : Astro.props.canonical === false ? undefined : Astro.url.href
|
||||
const canonical =
|
||||
typeof Astro.props.canonical === 'string'
|
||||
? Astro.props.canonical
|
||||
: Astro.props.canonical === false
|
||||
? undefined
|
||||
: Astro.url.href
|
||||
---
|
||||
|
||||
<!-- Charset -->
|
||||
|
Reference in New Issue
Block a user