Skip to content

Commit d686b4e

Browse files
🐛 Change order of home content
1 parent 002c9d9 commit d686b4e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staart/site",
3-
"version": "0.9.22",
3+
"version": "0.9.23",
44
"main": "dist/index.js",
55
"repository": "[email protected]:staart/site",
66
"author": "Anand Chowdhary <[email protected]>",

src/files.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ export const getHomePath = async () => {
4444
const contentDir = await getContentPath();
4545
if (config.homePath) return config.homePath;
4646
let file: string | undefined = undefined;
47-
file = join(contentDir, "..", "README.md");
47+
file = join(contentDir, "index.md");
4848
if (safeReadFile(file)) return file;
4949
file = join(contentDir, "README.md");
5050
if (safeReadFile(file)) return file;
51-
return join(contentDir, "index.md");
51+
file = join(contentDir, "..", "README.md");
52+
if (safeReadFile(file)) return file;
53+
return join("..", "src", "index.md");
5254
};
5355

5456
export const readContentFile = async (path: string) => {

0 commit comments

Comments
 (0)