]> git.ardis.lu - ardislu.dev/commitdiff
Remove logic to dynamically update og image
authorArdis Lu <ardisglu@gmail.com>
Sat, 16 Jul 2022 22:08:51 +0000 (15:08 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 16 Jul 2022 22:08:51 +0000 (15:08 -0700)
Scrapers which use this information do not run JavaScript

script.js

index 0c7be3a84d312172fb1a4417b59854b5eda7e0b2..5de7eb149f96b12e4667971c9117abcb836d4c1d 100644 (file)
--- 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) {
This page took 0.050243 seconds and 4 git commands to generate.