Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix href
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Aug 29, 2024
1 parent 24b4b47 commit 0bdbd5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .src/build.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import fs from 'node:fs'

const PREFIX = 'MoonBit-Code-JAM-2024'

fs.rmSync('.dist', { recursive: true, force: true })
fs.mkdirSync('.dist')

Expand All @@ -10,7 +8,7 @@ const games = fs
.filter(d => d.isDirectory() && !d.name.startsWith('.'))
.map(d => d.name)

const lis = games.map(d => `<li><a href='${PREFIX}/${d}'>${d}</a></li>`)
const lis = games.map(d => `<li><a href='${d}'>${d}</a></li>`)

const index = /*html*/ `
<!DOCTYPE html>
Expand Down

0 comments on commit 0bdbd5f

Please sign in to comment.