diff --git a/content/games/gameboy/alfred-chicken.md b/content/games/gameboy/alfred-chicken.md index af20516..f1ecec0 100644 --- a/content/games/gameboy/alfred-chicken.md +++ b/content/games/gameboy/alfred-chicken.md @@ -3,7 +3,7 @@ title: "Alfred Chicken: a Tricky Nineties Euro Platformer" date: 2022-05-30T11:23:00+02:00 score: 3 howlongtobeat_id: 337 -howlongtobeat_hrs: 3 +howlongtobeat_hrs: 2.9 game_name: 'Alfred Chicken' game_genre: '2D Platformer' game_release_year: 1993 diff --git a/hooks/precommit.js b/hooks/precommit.js index 4caaa4b..322c050 100644 --- a/hooks/precommit.js +++ b/hooks/precommit.js @@ -1,6 +1,7 @@ -const { howlongtobeat, webmention, youtube } = require('jam-my-stack'); const fsp = require('fs').promises; +const { resolve } = require('path'); +const { howlongtobeat, webmention, youtube } = require('jam-my-stack'); if(!process.env.WEBMENTION_TOKEN) { throw "No webmention token set!" @@ -11,14 +12,15 @@ const wmconfig = { token: process.env.WEBMENTION_TOKEN }; -const rootdir = `${__dirname}/../`; +// If this isn't resolved, jam-my-stack will fail to replace 'content' with 'static' when downloading covers. +const rootdir = resolve(`${__dirname}/..`); (async function() { // 1. get how long to beat times console.log("1. adding Howlongtobeat info...") await howlongtobeat.howlong({ postDir: `${rootdir}/content`, - downloadDir: `${rootdir}/static/img/hltb` + downloadDir: `${rootdir}/static` }) // 2. get webmentions diff --git a/package.json b/package.json index e7d9ba3..10f4d82 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "homepage": "https://jefklakscodex.com", "dependencies": { - "jam-my-stack": "^1.0.33" + "jam-my-stack": "^1.0.34" }, "devDependencies": { "@babel/cli": "^7.17.6", diff --git a/static/games/gameboy/alfred-chicken/cover.jpg b/static/games/gameboy/alfred-chicken/cover.jpg index 0d3a500..182568f 100644 Binary files a/static/games/gameboy/alfred-chicken/cover.jpg and b/static/games/gameboy/alfred-chicken/cover.jpg differ