Skip to content

Commit 3dd8309

Browse files
committed
chore: pages 디렉토리를 contents 로 변경
1 parent d92c38e commit 3dd8309

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7
-7
lines changed

.vitepress/config.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export default defineConfig({
5252
},
5353

5454
rewrites: {
55-
"pages/posts/index.md": "posts/index.md",
56-
"pages/posts/:slug*": "posts/:slug*",
57-
"pages/projects/index.md": "projects/index.md",
58-
"pages/projects/:slug*": "projects/:slug*",
55+
"contents/posts/index.md": "posts/index.md",
56+
"contents/posts/:slug*": "posts/:slug*",
57+
"contents/projects/index.md": "projects/index.md",
58+
"contents/projects/:slug*": "projects/:slug*",
5959
},
6060

6161
vite: {

.vitepress/plugins/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function executePostGeneration() {
1515
* 파일이 pages 디렉토리의 마크다운 파일인지 확인합니다
1616
*/
1717
function isPagesMarkdownFile(filePath: string): boolean {
18-
return filePath.includes("/pages/") && filePath.endsWith(".md");
18+
return filePath.includes("/contents/") && filePath.endsWith(".md");
1919
}
2020

2121
/**

.vitepress/plugins/sidebar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function generateSidebar(
1919
folderPath: string = "posts",
2020
urlPath?: string,
2121
): DefaultTheme.SidebarItem[] {
22-
const targetDir = join(process.cwd(), "pages", folderPath);
22+
const targetDir = join(process.cwd(), "contents", folderPath);
2323
const finalUrlPath = urlPath || `/${folderPath}`;
2424

2525
try {

0 commit comments

Comments
 (0)