-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b33dbac
commit 2817292
Showing
7 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# kicker: ไปฟังดนตรีคลาสสิกกันเถอะ | ||
title: วิธีฟังดนตรีคลาสสิก ฉบับมือใหม่ | ||
subtitle: ไม่ใช่นักดนตรีก็ฟังดนตรีคลาสสิกได้! แล้วคุณจะไม่มองว่าดนตรีคลาสสิกน่าเบื่ออีกต่อไป | ||
excerpt: z.string().optional() | ||
link: sdfsdfdf | ||
# image: z.string().optional(), | ||
pubDate: 2023-10-07 | ||
tags: [] | ||
--- | ||
|
||
คุณนึกถึงอะไรเมื่อพูดถึงดนตรีคลาสสิก? หลายคนนึงถึงเสียงดนตรีอันเชื่องช้า น่าเบื่อหน่าย หลายคนรู้สึกว่ามันยิ่งใหญ่ ห่างไกลตัว เข้าถึงยาก เป็นงานรวมคนแก่ | ||
|
||
ผมจะลองเล่าเรื่องเกี่ยวกับดนตรีคลาสสิก และวิธีฟังให้คุณฟัง ในมุมของคนที่ไม่ใช่ศิลปิน เล่นดนตรีไม่เป็นสักชิ้น อ่านโน้ตดนตรีก็ไม่เป็น แต่ก็กระเสือกกระสนอยากลองฟัง เผื่อสุดท้ายแล้วคุณจะมาสนใจดนตรีคลาสสิกเหมือนกันกับผม | ||
|
||
:::note[Using an Astro layout?] | ||
ไม่ต้องห่วง! บทความนี้เขียนโดยคนไม่มีความรู้ด้านดนตรี ผมพยายามใช้ภาษาที่เรียบง่ายที่สุด และอธิบายศัพท์ทางทฤษฎีดนตรีไว้ (ถ้าจำเป็นต้องใช้อะนะ) | ||
::: | ||
|
||
> [!IMPORTANT] | ||
> Crucial information necessary for users to succeed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
import { getCollection } from 'astro:content'; | ||
export async function getStaticPaths() { | ||
const blogEntries = await getCollection('blog'); | ||
return blogEntries.map(entry => ({ | ||
params: { slug: entry.slug }, props: { entry }, | ||
})); | ||
} | ||
const { entry } = Astro.props; | ||
const { Content } = await entry.render(); | ||
--- | ||
<meta charset="utf-8" /> | ||
|
||
<!-- <div> | ||
{JSON.stringify(entry)} | ||
</div> --> | ||
|
||
<h1>{entry.data.title}</h1> | ||
<Content /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import rss from '@astrojs/rss'; | ||
import { getCollection } from 'astro:content'; | ||
|
||
export const GET = async (context: any) => { | ||
const blogEntries = await getCollection('blog'); | ||
|
||
const entries = blogEntries.map((post) => ({ | ||
title: post.data.title, | ||
pubDate: post.data.pubDate, | ||
description: post.data.excerpt, | ||
// customData: post.data.customData, | ||
link: `/blog/${post.slug}/`, | ||
})); | ||
|
||
return rss({ | ||
title: 'Latest from thammarith.dev', | ||
description: 'See what Thammarith has finally wrote!', | ||
site: context.site, | ||
items: entries, | ||
}); | ||
}; |