From a66e37d445cc01bcf9a19e9c2212315902203803 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 16 Jul 2022 15:08:51 -0700 Subject: [PATCH] Remove logic to dynamically update og image Scrapers which use this information do not run JavaScript --- script.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/script.js b/script.js index 0c7be3a..5de7eb1 100644 --- a/script.js +++ b/script.js @@ -126,8 +126,6 @@ async function showPage(path) { head.ogTitle.content = 'ardislu.dev'; head.ogDescription.content = 'Notes on web development, crypto, self-hosting, and tech in general.'; head.ogUrl.content = 'https://ardislu.dev'; - head.ogImage.content = 'https://og-image.ardislu.dev/Notes%20on%20**web%20development**%2C%20**crypto**%2C%20**self-hosting**%2C%20and%20**tech**%20in%20general..png'; - head.ogImageAlt.content = "Website logo above the text 'notes on web development, crypto, self-hosting, and tech in general.'"; homeMain.innerHTML = ''; for (const [path, post] of posts) { homeMain.insertAdjacentHTML('beforeend', @@ -147,8 +145,6 @@ async function showPage(path) { head.ogTitle.content = post.title; head.ogDescription.content = post.description; head.ogUrl.content = `https://ardislu.dev${path}`; - head.ogImage.content = `https://og-image.ardislu.dev/${encodeURIComponent(post.title)}.png`; - head.ogImageAlt.content = `Website logo above the text '${post.title}'`; postHeader.querySelector('#edit').href = `https://docs.google.com/document/d/${post.id}/edit`; if (post.content === undefined) { -- 2.47.3