From c874976c3b8b5f0171cb83f0d47ea7171e3cef73 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Sat, 24 Dec 2022 10:43:50 +0100 Subject: [PATCH] remove goodreads fetching, added grand hotel link --- content/post/2022/12/grand-hotel-europa.md | 2 +- hooks/precommit.js | 26 ++++------------------ static/js/goodreads.js | 8 ------- 3 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 static/js/goodreads.js diff --git a/content/post/2022/12/grand-hotel-europa.md b/content/post/2022/12/grand-hotel-europa.md index 094edab7..4b6f8296 100644 --- a/content/post/2022/12/grand-hotel-europa.md +++ b/content/post/2022/12/grand-hotel-europa.md @@ -7,7 +7,7 @@ tags: - book review --- -The last book I read [this year](/post/2022/12/2022-in-books) was _Grand Hotel Europa_ from Ilja Leonard Pfeijffer, a lengthy critique on mass tourism and Europe's obsession with its past disguised as an innocent looking novel. It's masterfully written. Ilja himself plays the lead, reliving memories of his past flame in Venice while staying at a deprecating hotel that once was grand and now is being converted into a Chinese tourist trap. +The last book I read [this year](/post/2022/12/2022-in-books) was _[Grand Hotel Europa](https://iljapfeijffer.com/en/work/prose/grand-hotel-europa/)_ from Ilja Leonard Pfeijffer, a lengthy critique on mass tourism and Europe's obsession with its past disguised as an innocent looking novel. It's masterfully written. Ilja himself plays the lead, reliving memories of his past flame in Venice while staying at a deprecating hotel that once was grand and now is being converted into a Chinese tourist trap. The agony of a crumbling Europe that wanes under the pressure of global capitalism, where apparently consumerism and mass tourism are the only options to keep the economic balance at a status quo, was heartbreaking to read. Venice is clearly struggling to deal with the millions of tourists that huge cruises vomit into the city. And Ilja's Venice is just an example. Never before have cheap flight tickets caused that much damage---damage we all too willingly ignore in favor of a relaxing holiday, preferably including a quick shopping spree at a very "instagrammable" location. Perhaps Schopenhauer was right: living on this earth can be quite the penance. diff --git a/hooks/precommit.js b/hooks/precommit.js index 9f22d539..9884f3c6 100644 --- a/hooks/precommit.js +++ b/hooks/precommit.js @@ -6,32 +6,14 @@ const wmconfig = require('./_conf.js'); const rootdir = `${__dirname}/../`; (async function() { - // 1. parse Mastodon RSS feed - // currently disabling notes, as after 3 months, I find these do not bring anything relevant to the table. - /* - console.log("1. parsing Mastodon RSS feed...") - await mastodon.parseFeed({ - notesdir: `${__dirname}/content/notes`, - url: "https://chat.brainbaking.com/users/wouter/feed", - utcOffset: 60, - titleCount: 50, - ignoreReplies: true - }) - */ - - // 2. update goodreads JS widget - console.log("2. Updating Goodreads Widget...") - const widget = await goodreads.createWidget("https://www.goodreads.com/review/grid_widget/5451893.Wouter's%20bookshelf:%20read?cover_size=medium&hide_link=&hide_title=&num_books=12&order=d&shelf=read&sort=date_added&widget_id=1496758344") - await fsp.writeFile(`${rootdir}/static/js/goodreads.js`, widget.replace(/src=/g, "loading=\"lazy\" src="), 'utf-8') - - // 3. get webmentions - console.log("4. Fetching webmentions...") + // 1. get webmentions + console.log("1. Fetching webmentions...") const mentions = await webmention.getWebmentions("brainbaking.com", wmconfig) const json = JSON.stringify(mentions, null, 4) await fsp.writeFile(`${rootdir}/data/webmentions.json`, json, 'utf-8') - // 4. generate youtube thumbnails - console.log("5. Generating YouTube thumbnails...") + // 2. generate youtube thumbnails + console.log("2. Generating YouTube thumbnails...") await youtube.thumbify({ postDir: `${rootdir}/content/post`, downloadDir: `${rootdir}/static/img/yt`, diff --git a/static/js/goodreads.js b/static/js/goodreads.js deleted file mode 100644 index 61bda696..00000000 --- a/static/js/goodreads.js +++ /dev/null @@ -1,8 +0,0 @@ - var widget_code = '

\n Wouter's bookshelf: read<\/a>\n <\/h2>\n