File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 },
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}
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 ">
88</ head >
99< body >
1010 < nav >
11- < a href ="/ "> Home </ a >
11+ < a href ="/ "> Start </ a >
1212 </ nav >
1313 < main >
1414 {{CONTENT}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments