Skip to content

Commit

Permalink
Merge pull request #104 from Yoshino-Yukitaro/develop
Browse files Browse the repository at this point in the history
rss用の設定を追加
  • Loading branch information
Yoshino-Yukitaro authored Sep 15, 2024
2 parents 0a6d042 + c563873 commit dd4e916
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@astrojs/cloudflare": "11.0.4",
"@astrojs/mdx": "^3.1.6",
"@astrojs/rss": "^4.0.7",
"@astrojs/tailwind": "^5.1.0",
"@formkit/tempo": "^0.1.2",
"astro": "4.15.6",
Expand Down
2 changes: 2 additions & 0 deletions plop-templates/blog/index.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
title: "タイトル"
createdAt: {{createdAt}}
description: "キャッチコピー"
link: https://yukky-sandbox.dev/post/{{pathname}}
pubDate: {{createdAt}}
layout: "../../../layouts/PostLayout.astro"
---
1 change: 1 addition & 0 deletions plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function (plop) {
templateFile: "plop-templates/blog/index.md.hbs",
data: {
createdAt: `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`,
pathname,
},
},
],
Expand Down
1 change: 1 addition & 0 deletions src/components/molecules/HeaderNavigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
>
<li class="hover:opacity-50"><a href="/">記事一覧</a></li>
<li class="hover:opacity-50"><a href="/introduction">自己紹介</a></li>
<li class="hover:opacity-50"><a href="/rss.xml">rss</a></li>
</ul>
</nav>
2 changes: 2 additions & 0 deletions src/pages/post/0h2p5w7rfh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "転職して1ヶ月が経過した"
createdAt: 2023/6/11
description: "転職して1ヶ月が経過したため、転職活動中のことや今感じていること・思っていることをまとめてみます!"
link: https://yukky-sandbox.dev/post/0h2p5w7rfh
pubDate: 2023/6/11
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/4d4y1g2up/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "2023年の目標50本"
createdAt: 2023/1/9
description: "今年の目標を50本立てました!!達成できるように頑張ろう!!"
link: https://yukky-sandbox.dev/post/4d4y1g2up
pubDate: 2023/1/9
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/4sdndar2n/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Cloudflareでbun使えないじゃん!!!と思ったらBuild Systemが古いだけでした"
createdAt: 2023/12/3
description: "Cloudflareでbunが使えないと思ってnカ月。。原因はBuild System Versionが1のままなことでした。。。 "
link: https://yukky-sandbox.dev/post/4sdndar2n
pubDate: 2023/12/3
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/fw7_gmrn2w/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "初めての投稿~このブログを作った経緯~"
createdAt: 2022/12/19
description: "このブログの初めての投稿です。このブログを作った経緯とか、これから何に使うのかとかについて説明しています。今後ともよろしくお願いします。"
link: https://yukky-sandbox.dev/post/fw7_gmrn2w
pubDate: 2022/12/19
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/kvc56ubf4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "isucon13で無力さを実感したので来年に向けてできることをまとめていく(随時更新)"
createdAt: 2023/12/3
description: "来年のisuconに向けた自分用のメモです。今年はほとんど何もできなかったけど次こそは、、!"
link: https://yukky-sandbox.dev/post/kvc56ubf4
pubDate: 2023/12/3
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/m2juo4dy7c/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Next.js13 (or React18)でreact-google-maps/apiのMarkerが表示されない"
createdAt: 2023/2/1
description: "Next.js13でreact-google-maps/apiのMarkerが表示されない問題の解決策の備忘録です。"
link: https://yukky-sandbox.dev/post/m2juo4dy7c
pubDate: 2023/2/1
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/rkmss30pwd1/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "このブログをAstro v2系にupgradeした時のメモ"
createdAt: 2023/2/12
description: "このブログで使用しているAstroのバージョンをv2系にアップグレードした時のメモです。"
link: https://yukky-sandbox.dev/post/rkmss30pwd1
pubDate: 2023/2/12
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
2 changes: 2 additions & 0 deletions src/pages/post/rwft75ng_3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "2022年の振り返り"
createdAt: 2022/12/30
description: "去る2022年、今年は大学卒業に新卒入社と様々なビックイベントがありました!この記事では、そんなビックイベントの数々を振り返っていきます。"
link: https://yukky-sandbox.dev/post/rwft75ng_3
pubDate: 2022/12/30
layout: "../../../layouts/PostLayout.astro"
---

Expand Down
11 changes: 11 additions & 0 deletions src/pages/rss.xml.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import rss, { pagesGlobToRssItems } from "@astrojs/rss";

export async function GET(context) {
return rss({
title: "ゆっきーの砂場",
description:
"ポケモンと旅行、美味しい料理が好きなエンジニア「ゆっきー」のブログ兼実験場です。",
site: context.site,
items: await pagesGlobToRssItems(import.meta.glob("./post/**/*.{md,mdx}")),
});
}

0 comments on commit dd4e916

Please sign in to comment.