Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yunogasai committed Jul 1, 2024
1 parent b385c4b commit 90561fe
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 13 deletions.
7 changes: 5 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineConfig } from 'astro/config';

// import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
site:'https://yun-ogasai.github.io'
});
site: 'https://yun-ogasai.github.io',
// integrations: [react()]
});
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.11.3",
"@astrojs/check": "^0.7.0",
"@astrojs/react": "^3.6.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.11.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.5.2"
}
}
145 changes: 145 additions & 0 deletions pnpm-lock.yaml

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

7 changes: 5 additions & 2 deletions src/layouts/Baselayout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
import { ViewTransitions } from "astro:transitions";
const {title }= Astro.props.frontmatter||Astro.props;
import "../styles/global.css";
---

<html lang="en">
Expand Down Expand Up @@ -32,10 +33,12 @@ import "../styles/global.css";
<a href="/">home</a>
<a href="/posts">posts</a>
<a href="/tags">tags</a>
<h2>{title || ""}</h2>
<slot />
<footer>
power by <a href="https://astro.build" target="_blank">astro</a>
power by <a href="https://astro.build" target="_blank">astro.</a>
</footer>

</div>
</body>
</html>
7 changes: 0 additions & 7 deletions src/pages/posts/first.md

This file was deleted.

8 changes: 8 additions & 0 deletions src/pages/posts/rust.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: "../../layouts/Baselayout.astro"

title: Where you should go to learn Rust.
---
this website you should go. [rust](https://www.rust-lang.org/)


12 changes: 11 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "astro/tsconfigs/strict"
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
// "jsx": "react-jsx",
// "jsxImportSource": "react",
"baseUrl": ".",
"paths": {
"@/*":["src/*"],
"@components/*": ["@/components/*"],
"@images/*": ["@/images/*"],
}
}
}

0 comments on commit 90561fe

Please sign in to comment.