mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-09 18:25:01 +00:00
darkmode scripts
This commit is contained in:
parent
89e0311a98
commit
4d3579ca98
13 changed files with 145 additions and 15 deletions
quartz/plugins/emitters
|
@ -48,14 +48,14 @@ export class ContentPage extends QuartzEmitterPlugin {
|
|||
|
||||
const title = file.data.frontmatter?.title
|
||||
const doc = <html>
|
||||
<Head.Component
|
||||
<Head
|
||||
title={title ?? "Untitled"}
|
||||
description={file.data.description ?? "No description provided"}
|
||||
slug={file.data.slug!}
|
||||
externalResources={pageResources} />
|
||||
<body>
|
||||
<div id="quartz-root" class="page">
|
||||
<Header.Component title={cfg.siteTitle} slug={file.data.slug!} />
|
||||
<Header title={cfg.siteTitle} slug={file.data.slug!} />
|
||||
<article>
|
||||
{file.data.slug !== "index" && <h1>{title}</h1>}
|
||||
{content}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue