Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export interface Props {
ogImageAlt?: string
link?: object[]
structuredData?: object[]
is404?: boolean
}

const {
Expand All @@ -41,7 +40,6 @@ const {
ogImageAlt,
link = [],
structuredData = [],
is404 = false
} = Astro.props

const canonicalUrl = new URL(Astro.url.pathname, Astro.site).toString()
Expand Down Expand Up @@ -134,16 +132,6 @@ import "../styles/global.css"
/>
<Icons />
<script is:inline set:html={themeToggleInitScript}></script>
<script defer data-domain="ddev.com" src="https://plausible.io/js/script.js"
></script>
{
is404 && (
<script is:inline>
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
</script>
<script is:inline>plausible("404",{ props: { path: document.location.pathname } });</script>
)
}
<StructuredData data={jsonLd} />
</head>
<body class="dark:bg-slate-800">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PostBody from "../components/PostBody.astro"
const title = `404`
---

<Layout title={title} noindex={true} is404={true}>
<Layout title={title} noindex={true}>
<main class="max-w-4xl mx-auto mb-24 px-6 lg:px-0">
<h1 class="font-mono text-5xl my-24 mb-8 dark:text-white">{title}</h1>
<PostBody>
Expand Down
Loading