- {{ .name | safeHTML }}: {{ .content | safeHTML }} -
- - -diff --git a/hooks/postdeploy.js b/hooks/postdeploy.js index 6cfe807..2b37291 100644 --- a/hooks/postdeploy.js +++ b/hooks/postdeploy.js @@ -1,19 +1,5 @@ -const { webmention } = require('jam-my-stack'); - -if(!process.env.WEBMENTION_TOKEN) { - throw "No webmention token set!" -} - -const wmconfig = { - endpoint: 'https://jam.brainbaking.com', - token: process.env.WEBMENTION_TOKEN -}; (async function() { - // 1. send webmentions - console.log("1. Sending webmentions...") - await webmention.send("jefklakscodex.com", wmconfig) - - console.log("-- all done!") + console.log("-- postdeploy: all done!") })() diff --git a/hooks/precommit.js b/hooks/precommit.js index 322c050..ce9cbbf 100644 --- a/hooks/precommit.js +++ b/hooks/precommit.js @@ -1,41 +1,25 @@ const fsp = require('fs').promises; const { resolve } = require('path'); -const { howlongtobeat, webmention, youtube } = require('jam-my-stack'); +const { howlongtobeat, youtube } = require('jam-my-stack'); -if(!process.env.WEBMENTION_TOKEN) { - throw "No webmention token set!" -} - -const wmconfig = { - endpoint: 'https://jam.brainbaking.com', - token: process.env.WEBMENTION_TOKEN -}; // 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...") + console.log("--> adding Howlongtobeat info...") await howlongtobeat.howlong({ postDir: `${rootdir}/content`, downloadDir: `${rootdir}/static` }) - // 2. get webmentions - console.log("2. Fetching webmentions...") - const mentions = await webmention.getWebmentions("jefklakscodex.com", wmconfig) - const json = JSON.stringify(mentions, null, 4) - await fsp.writeFile(`${rootdir}/data/webmentions.json`, json, 'utf-8') - - // 3. generate youtube thumbnails. - console.log("4. Generating YouTube thumbnails...") + console.log("--> Generating YouTube thumbnails...") await youtube.thumbify({ postDir: `${rootdir}/content`, downloadDir: `${rootdir}/static/img/yt`, overlayImg: `${rootdir}/play.png` }) - console.log("-- all done!") + console.log("-- precommit: all done!") })() diff --git a/themes/jefklak-creative-portfolio/layouts/_default/single.html b/themes/jefklak-creative-portfolio/layouts/_default/single.html index b1a3833..79407af 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/single.html +++ b/themes/jefklak-creative-portfolio/layouts/_default/single.html @@ -59,7 +59,6 @@ {{ partial "single-comments" . }} - {{ partial "single-mentions" . }}
- {{ .name | safeHTML }}: {{ .content | safeHTML }} -
- - -