@giancarlosgza/blog-layer 0.1.0 → 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/README.md CHANGED
@@ -9,7 +9,7 @@ It only adds the blog. The site keeps its own app shell (app.vue, layout, header
9
9
  load `@colorffy/css` itself. For a standalone blog site, install
10
10
  [`@giancarlosgza/blog-site-layer`](../blog-site-layer) instead, which wraps this layer in a full shell.
11
11
 
12
- The Firestore schema it reads is in [`docs/schema.md`](../../docs/schema.md); content is written by
12
+ The Firestore schema it reads is in [`docs/schema.md`](https://github.com/giancarlosgza/blog-kit/blob/main/docs/schema.md); content is written by
13
13
  the blog admin.
14
14
 
15
15
  ## Add a blog to a site
package/nuxt.config.ts CHANGED
@@ -4,28 +4,32 @@ import blogModule from './blog-module'
4
4
 
5
5
  const layerDir = dirname(fileURLToPath(import.meta.url))
6
6
 
7
- /** Blog layer: pages under `blog.basePath`, `/api/blog/*`, RSS, sitemap and SEO */
7
+ /** Blog Layer */
8
8
  export default defineNuxtConfig({
9
9
  compatibilityDate: '2026-01-01',
10
10
 
11
11
  alias: {
12
12
  '#blog': layerDir
13
13
  },
14
-
15
- // Pages come from blog-module, no pages/ dir
16
14
  pages: true,
17
-
18
15
  blog: {
19
16
  basePath: '/'
20
17
  },
21
18
 
22
19
  nitro: {
23
- // fs cache breaks on Windows with ?query keys
24
20
  devStorage: {
25
21
  cache: { driver: 'memory' }
26
22
  }
27
23
  },
28
24
 
25
+ vite: {
26
+ css: {
27
+ preprocessorOptions: {
28
+ scss: { sourceMapIncludeSources: true }
29
+ }
30
+ }
31
+ },
32
+
29
33
  runtimeConfig: {
30
34
  siteUrl: '',
31
35
 
@@ -53,7 +57,7 @@ export default defineNuxtConfig({
53
57
  sources: ['/api/blog/_sitemap-urls']
54
58
  },
55
59
 
56
- // Color mode (`.dark-mode` class)
60
+ // Color mode
57
61
  colorMode: {
58
62
  preference: 'system',
59
63
  classSuffix: '-mode'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giancarlosgza/blog-layer",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Nuxt layer that adds a Firestore-backed blog to a site under a configurable base path: pages, cached API, RSS, sitemap and SEO",
5
5
  "author": "Giancarlos Garza <giancarlosgza@gmail.com> (https://github.com/giancarlosgza)",
6
6
  "type": "module",