Skip to content

Commit

Permalink
Merge pull request #21 from hayato-osh/feature/blog-style
Browse files Browse the repository at this point in the history
feat: 記事のスタイルを調整
  • Loading branch information
hayato-osh authored Apr 15, 2024
2 parents d3627dd + 439fa7c commit 302d753
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
47 changes: 47 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@tailwindcss/typography": "^0.5.12",
"@textlint/textlint-plugin-markdown": "^14.0.4",
"husky": "^9.0.11",
"npm-run-all2": "^6.1.2",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ interface Props {
const { post } = Astro.props;
---
<article>
<h1 class="text-lg font-bold">{post.data.title}</h1>
<article class="prose dark:prose-invert prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg">
<h1>{post.data.title}</h1>
<div>
<span>作成日:{post.data.createdAt}</span>
<span>更新日:{post.data.updatedAt}</span>
Expand Down
8 changes: 8 additions & 0 deletions src/content/posts/hello-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ updatedAt: 2024-04-10
- [リンク](https://astro.build)
- などなど

### h3 でこんにちは

#### h4 でこんにちは

##### h5 でこんにちは

###### h6 でこんにちは

```js
console.log('Hello, Blog.');
```
5 changes: 1 addition & 4 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
export default {
darkMode: "class",
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {},
},
plugins: [],
plugins: [require("@tailwindcss/typography")],
};

0 comments on commit 302d753

Please sign in to comment.