About This Site
Introduction
This is Riku-Mono's portfolio site.
I publish information about myself, blog posts, and works.
Currently, the site is built with Next.js v15 (App Router - TypeScript) and uses contentlayer2 for page composition and management with MDX files.
Site Structure
How to Use
pnpm installpnpm dev- Check at localhost:3000
Writing Guide
Blog Posts
- Create posts in
src/contents/posts/[lang]/for each language. - Set the filename as
src/contents/posts/[lang]/[slug].mdx. - Configure post information in the Front Matter of
src/contents/posts/[lang]/[slug].mdx.
Works
- Create works in
src/contents/works/[lang]/for each language. - Set the filename as
src/contents/works/[lang]/[slug].mdx. - Configure work information in the Front Matter of
src/contents/works/[lang]/[slug].mdx.
For required Front Matter information and configuration methods, please refer to Properties Available on This Site.
How to Add a New Language
- Add the language code to
src/i18n/i18nLocales.js.
-
Create a directory with the language code in
src/contents/posts/[lang]/,src/contents/pages/[lang],src/contents/categories/[lang],src/i18n/locales/[lang]. -
In
src/contents/posts/[lang]/andsrc/contents/pages/[lang], if a corresponding language translation file doesn't exist, it will reference the defaultLocale file, so immediate translation is not necessary. -
Add category translations in
src/contents/categories/[lang]. Please create all files by referring to the categories in the defaultLocale directory. -
Add language file translations in
src/i18n/locales/[lang]. Please create all files by referring to the files in the defaultLocale directory. -
Add language metadata to
scr/contents/siteLocaleMetadata.js.
