@edoxen/browser 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { EdoxenConfig } from '../../config/index.js'
|
|
3
3
|
import { generateCssTokens } from '../../config/index.js'
|
|
4
|
+
import baseCss from '../../../styles/base.css?raw'
|
|
4
5
|
|
|
5
6
|
interface Props {
|
|
6
7
|
config: EdoxenConfig
|
|
@@ -13,6 +14,7 @@ const { config, title, description, lang = config.site.locale } = Astro.props
|
|
|
13
14
|
const pageTitle = title ?? config.site.title
|
|
14
15
|
const pageDescription = description ?? config.site.description
|
|
15
16
|
const tokens = generateCssTokens(config.theme)
|
|
17
|
+
const globalCss = `${baseCss}\n${tokens}`
|
|
16
18
|
const canonical = new URL(Astro.url.pathname, config.site.url).toString()
|
|
17
19
|
---
|
|
18
20
|
|
|
@@ -33,7 +35,7 @@ const canonical = new URL(Astro.url.pathname, config.site.url).toString()
|
|
|
33
35
|
<meta name="twitter:card" content="summary" />
|
|
34
36
|
<meta name="twitter:title" content={pageTitle} />
|
|
35
37
|
<meta name="twitter:description" content={pageDescription} />
|
|
36
|
-
<style is:global set:html={
|
|
38
|
+
<style is:global set:html={globalCss} />
|
|
37
39
|
<slot name="head" />
|
|
38
40
|
</head>
|
|
39
41
|
<body>
|