@edoxen/browser 0.1.2 → 0.1.3

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,6 @@
1
1
  {
2
2
  "name": "@edoxen/browser",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Astro-based browser for edoxen YAML data — drop in your data and ship a resolutions archive site.",
5
5
  "type": "module",
6
6
  "license": "BSD-2-Clause",
@@ -1,7 +1,9 @@
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
+ // Side-effect import: bundles styles/base.css through Astro/Vite's CSS
5
+ // pipeline and inlines the result on every page that uses BaseLayout.
6
+ import '../../../styles/base.css'
5
7
 
6
8
  interface Props {
7
9
  config: EdoxenConfig
@@ -14,7 +16,6 @@ const { config, title, description, lang = config.site.locale } = Astro.props
14
16
  const pageTitle = title ?? config.site.title
15
17
  const pageDescription = description ?? config.site.description
16
18
  const tokens = generateCssTokens(config.theme)
17
- const globalCss = `${baseCss}\n${tokens}`
18
19
  const canonical = new URL(Astro.url.pathname, config.site.url).toString()
19
20
  ---
20
21
 
@@ -35,7 +36,8 @@ const canonical = new URL(Astro.url.pathname, config.site.url).toString()
35
36
  <meta name="twitter:card" content="summary" />
36
37
  <meta name="twitter:title" content={pageTitle} />
37
38
  <meta name="twitter:description" content={pageDescription} />
38
- <style is:global set:html={globalCss} />
39
+
40
+ <style is:global set:html={tokens} />
39
41
  <slot name="head" />
40
42
  </head>
41
43
  <body>