fix props and build image
This commit is contained in:
parent
667038d811
commit
c43d2e5420
@ -34,6 +34,7 @@
|
|||||||
"rehype-pretty-code": "^0.13.2",
|
"rehype-pretty-code": "^0.13.2",
|
||||||
"rehype-slug": "^6.0.0",
|
"rehype-slug": "^6.0.0",
|
||||||
"sanitize-html": "^2.13.0",
|
"sanitize-html": "^2.13.0",
|
||||||
|
"sharp": "^0.33.4",
|
||||||
"tailwind-merge": "^2.3.0",
|
"tailwind-merge": "^2.3.0",
|
||||||
"tailwindcss": "^3.4.4",
|
"tailwindcss": "^3.4.4",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
|
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@ -80,6 +80,9 @@ importers:
|
|||||||
sanitize-html:
|
sanitize-html:
|
||||||
specifier: ^2.13.0
|
specifier: ^2.13.0
|
||||||
version: 2.13.0
|
version: 2.13.0
|
||||||
|
sharp:
|
||||||
|
specifier: ^0.33.4
|
||||||
|
version: 0.33.4
|
||||||
tailwind-merge:
|
tailwind-merge:
|
||||||
specifier: ^2.3.0
|
specifier: ^2.3.0
|
||||||
version: 2.3.0
|
version: 2.3.0
|
||||||
@ -4284,7 +4287,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
color-name: 1.1.4
|
color-name: 1.1.4
|
||||||
simple-swizzle: 0.2.2
|
simple-swizzle: 0.2.2
|
||||||
optional: true
|
|
||||||
|
|
||||||
color-support@1.1.3: {}
|
color-support@1.1.3: {}
|
||||||
|
|
||||||
@ -4292,7 +4294,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
color-convert: 2.0.1
|
color-convert: 2.0.1
|
||||||
color-string: 1.9.1
|
color-string: 1.9.1
|
||||||
optional: true
|
|
||||||
|
|
||||||
comma-separated-tokens@2.0.3: {}
|
comma-separated-tokens@2.0.3: {}
|
||||||
|
|
||||||
@ -4788,8 +4789,7 @@ snapshots:
|
|||||||
is-alphabetical: 2.0.1
|
is-alphabetical: 2.0.1
|
||||||
is-decimal: 2.0.1
|
is-decimal: 2.0.1
|
||||||
|
|
||||||
is-arrayish@0.3.2:
|
is-arrayish@0.3.2: {}
|
||||||
optional: true
|
|
||||||
|
|
||||||
is-binary-path@2.1.0:
|
is-binary-path@2.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -5991,7 +5991,6 @@ snapshots:
|
|||||||
'@img/sharp-wasm32': 0.33.4
|
'@img/sharp-wasm32': 0.33.4
|
||||||
'@img/sharp-win32-ia32': 0.33.4
|
'@img/sharp-win32-ia32': 0.33.4
|
||||||
'@img/sharp-win32-x64': 0.33.4
|
'@img/sharp-win32-x64': 0.33.4
|
||||||
optional: true
|
|
||||||
|
|
||||||
shebang-command@2.0.0:
|
shebang-command@2.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -6010,7 +6009,6 @@ snapshots:
|
|||||||
simple-swizzle@0.2.2:
|
simple-swizzle@0.2.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish: 0.3.2
|
is-arrayish: 0.3.2
|
||||||
optional: true
|
|
||||||
|
|
||||||
sisteransi@1.0.5: {}
|
sisteransi@1.0.5: {}
|
||||||
|
|
||||||
|
3179
src/assets/favicon.svg
Normal file
3179
src/assets/favicon.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 182 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.0 KiB |
3179
src/assets/logo.svg
Normal file
3179
src/assets/logo.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 182 KiB |
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import { navItems } from "@/utils/nav-links";
|
import { navItems } from "@/utils/nav-links";
|
||||||
import MobileMenu from "@/components/mobile-menu";
|
import MobileMenu from "@/components/mobile-menu";
|
||||||
import logo from "@/assets/logo.png";
|
import logo from "@/assets/logo.svg";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import LinkButton from "@/components/link-button";
|
import LinkButton from "@/components/link-button";
|
||||||
---
|
---
|
||||||
|
@ -5,6 +5,8 @@ import "@/styles/globals.css";
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
|
description: string;
|
||||||
|
lang?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, description, lang } = Astro.props;
|
const { title, description, lang } = Astro.props;
|
||||||
|
@ -4,7 +4,7 @@ import LinkButton from "@/components/link-button";
|
|||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import PostItem from "@/components/post-item";
|
import PostItem from "@/components/post-item";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import logo from "@/assets/logo.png";
|
import logo from "@/assets/logo.svg";
|
||||||
|
|
||||||
const allPosts = await getCollection("blog", ({ data }) => data.draft !== true);
|
const allPosts = await getCollection("blog", ({ data }) => data.draft !== true);
|
||||||
allPosts.sort(
|
allPosts.sort(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user