Skip to content

Commit

Permalink
Blog ses 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Aug 16, 2024
1 parent 6d863f8 commit ddb8c58
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 3 deletions.
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightBlog from "starlight-blog";

// https://astro.build/config
export default defineConfig({
Expand All @@ -12,6 +13,7 @@ export default defineConfig({
replacesTitle: true,
},
customCss: ["./src/custom.css"],
plugins: [starlightBlog()],
// social: {
// github: 'https://github.com/withastro/starlight',
// },
Expand Down
125 changes: 124 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@astrojs/starlight": "^0.25.0",
"astro": "^4.10.2",
"ses": "^1.5.0",
"sharp": "^0.32.5"
"sharp": "^0.32.5",
"starlight-blog": "^0.12.0"
}
}
7 changes: 6 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { defineCollection } from 'astro:content';
import { docsSchema } from '@astrojs/starlight/schema';
import { blogSchema } from 'starlight-blog/schema'

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
docs: defineCollection({
schema: docsSchema({
extend: blogSchema,
}),
}),
};
Loading

0 comments on commit ddb8c58

Please sign in to comment.