Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/astro-theme/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ export function defineCommonCollections() {
title: z.string(),
description: z.string().optional(),
url: z.string(),
heroImage: image().refine((img) => img.width / img.height == 1.5, {
message: "Image must have 3:2 aspect ratio",
}),
heroImage: image(),
tags: productTags.optional(),
}),
}),
Expand Down
5 changes: 1 addition & 4 deletions packages/astro-theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import rehypeSlug from "rehype-slug";
import rehypeExternalLinks from "rehype-external-links";
import { type AstroIntegration } from "astro";
import { addIntegration } from "astro-integration-kit";
import { squooshImageService } from "astro/config";
import { cpSync } from "fs";
import { join as joinPath } from "path";

Expand Down Expand Up @@ -144,9 +143,7 @@ export default function ThemeIntegration(
inlineStylesheets: "always",
},
trailingSlash: "never",
image: {
service: squooshImageService(),
},

vite: {
ssr: {
noExternal: ["@leaningtech/global-navbar"],
Expand Down
7 changes: 4 additions & 3 deletions packages/astro-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
},
"scripts": {},
"peerDependencies": {
"@astrojs/svelte": "^5.3.0",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/svelte": "^7.2.4",
"@astrojs/tailwind": "^6.0.2",
"astro": "*",
"svelte": "^5.38.6",
"tailwindcss": "^3.4.0"
},
"dependencies": {
"@astrojs/mdx": "^2.2.4",
"@astrojs/mdx": "^4.3.13",
"@astrojs/prefetch": "^0.4.1",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
Expand All @@ -54,6 +54,7 @@
"rehype-external-links": "^3.0.0",
"rehype-slug": "^6.0.0",
"remark-obsidian-callout": "^1.1.3",
"sharp": "^0.34.5",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
Expand Down
Loading