Skip to content

Commit

Permalink
Move to v2 (AREA44#89)
Browse files Browse the repository at this point in the history
* move to v2

* fix astro sitemap

* remove aspectRatio

* add height

* done
  • Loading branch information
torn4dom4n authored Mar 13, 2023
1 parent 22d9a8e commit 765b46a
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 22 deletions.
8 changes: 0 additions & 8 deletions .github/renovate.json

This file was deleted.

5 changes: 4 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// https://astro.build/config
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
site: "https://astro-multiverse.netlify.app",
experimental: {
assets: true,
},
integrations: [sitemap()],
});
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[build]
command = "pnpm run build"
publish = "dist"

[[plugins]]
# Netlify Plugin Lighthouse
# see detail: https://github.com/netlify/netlify-plugin-lighthouse
package = "@netlify/plugin-lighthouse"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/image": "^0.16.0",
"@astrojs/sitemap": "^1.2.0",
"astro": "^2.1.2"
}
}
15 changes: 15 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": ["config:base"],
"dependencyDashboard": false,
"labels": ["renovate"],
"automerge": true,
"schedule": ["before 3am on Monday"],
"packageRules": [
{
"groupName": "astro",
"labels": ["astro"],
"matchPackageNames": ["astro"],
"matchPackagePatterns": ["^@astro", "^astro"]
}
]
}
4 changes: 2 additions & 2 deletions src/components/Thumb.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
import {Image} from "@astrojs/image/components";
import { Image } from "astro:assets";
const { href, title, description } = Astro.props;
---

<article class="thumb">
<a class="image" href={href} >
<Image src={href} width="1200" aspectRatio="4:3" format="webp" alt="" />
<Image src={href} width="1200" height="900" format="webp" alt="Astro Multiverse" />
</a>
<h2>{title}</h2>
<p>{description}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
/// <reference types="astro/client-image" />
10 changes: 1 addition & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"types": ["@astrojs/image/client"],
"allowJs": true,
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
}
"extends": "astro/tsconfigs/base"
}

0 comments on commit 765b46a

Please sign in to comment.