Skip to content

Commit 180d6a7

Browse files
committed
Dropped typescript, try deploy
1 parent 41275dc commit 180d6a7

4 files changed

Lines changed: 7 additions & 20 deletions

File tree

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsx src/build.ts"
7+
"build": "node src/build.js"
88
},
99
"repository": {
1010
"type": "git",
1111
"url": "git+https://github.com/visj/visj.github.io.git"
1212
},
1313
"keywords": [],
1414
"author": "",
15-
"license": "ISC",
16-
"type": "commonjs",
15+
"license": "MIT",
16+
"type": "module",
1717
"bugs": {
1818
"url": "https://github.com/visj/visj.github.io/issues"
1919
},
@@ -23,10 +23,5 @@
2323
"gray-matter": "^4.0.3",
2424
"markdown-exit": "^1.0.0-beta.9",
2525
"shiki": "^4.0.2"
26-
},
27-
"devDependencies": {
28-
"@types/node": "^25.5.0",
29-
"tsx": "^4.21.0",
30-
"typescript": "^5.9.3"
3126
}
3227
}

src/build.ts renamed to src/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function build() {
2929
await fs.copyFile('./src/style.css', path.join(DIST_DIR, 'style.css'));
3030

3131
// 4. Recursive function to read all markdown files and mirror the folder structure
32-
async function processDirectory(dir: string) {
32+
async function processDirectory(dir) {
3333
const entries = await fs.readdir(dir, { withFileTypes: true });
3434

3535
for (const entry of entries) {
@@ -50,7 +50,7 @@ async function build() {
5050

5151
// Parse YAML frontmatter (like title) and the raw markdown body
5252
const { data, content } = matter(fileContent);
53-
const title = data.title || 'My Blog';
53+
const title = data.title || 'Vilhelm.se';
5454

5555
// Render markdown asynchronously (required for the Shiki plugin to work)
5656
const htmlContent = await md.renderAsync(content);

src/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="sv">
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -8,7 +8,7 @@
88
</head>
99
<body>
1010
<nav>
11-
<a href="/">Home</a>
11+
<a href="/">Start</a>
1212
</nav>
1313
<main>
1414
{{CONTENT}}

tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)