Skip to content

Commit

Permalink
Fix wiki dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jun 27, 2022
1 parent 9818f23 commit ac77c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev --experimental-integrations",
"build": "astro build --experimental-integrations",
"preview": "astro preview",
"preview": "astro preview --experimental-integrations",
"format": "prettier -w --plugin-search-dir=. --cache .",
"lint": "eslint . --ext .ts,.js,.astro"
},
Expand Down
2 changes: 1 addition & 1 deletion src/data/wiki.ts
Expand Up @@ -26,7 +26,7 @@ function postProcessWikiItem(wikiItem: WikiItem, file: string): WikiItem {
if (import.meta.env.PROD) {
// Get the last modified time and commit ref from Git as getting it from file system is not accurate
// PERF: This is slow, we should attempt to do it once for the entire website instead of once per file
const gitInfoRaw = execSync(`git log -1 --date=iso --pretty="format:%cI|%H" -- ./${file}`)
const gitInfoRaw = execSync(`git log -1 --date=iso --pretty="format:%cI|%H" -- ${file}`)
.toString()
.split("|")

Expand Down

0 comments on commit ac77c20

Please sign in to comment.