From 4d04df3b1906b349b58e23fabd746078ed973302 Mon Sep 17 00:00:00 2001 From: Antal Orcsik Date: Thu, 1 Aug 2024 01:44:27 +0200 Subject: [PATCH] update social meta data --- src/ejs/_header.ejs | 9 ++++++--- src/js/BlogPage.js | 2 -- src/md/blog/elden-ring-part-2.md | 1 + src/md/blog/elden-ring-part-3.md | 2 ++ src/md/blog/elden-ring.md | 1 + 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/ejs/_header.ejs b/src/ejs/_header.ejs index f7d01ff..065eb62 100644 --- a/src/ejs/_header.ejs +++ b/src/ejs/_header.ejs @@ -3,18 +3,21 @@ - <%= context.title %> + <%= context.title %><% if (context.subtitle) { %> - <%= context.subtitle %><% } %> | aorcsik.com - + <% if (context.image) { %><% } %> - + + + + <% if (context.image) { %><% } %> diff --git a/src/js/BlogPage.js b/src/js/BlogPage.js index 619d484..768388d 100644 --- a/src/js/BlogPage.js +++ b/src/js/BlogPage.js @@ -71,8 +71,6 @@ class BlogPage } }); - if (!data.description) data.description = data.subtitle; - // const varMatches = markdownString.matchAll(/\[(.*?)\]\(#var:(.*)\)/gm); // if (varMatches) { // [...varMatches].forEach(varMatch => { diff --git a/src/md/blog/elden-ring-part-2.md b/src/md/blog/elden-ring-part-2.md index e3e9f7f..1f7748b 100644 --- a/src/md/blog/elden-ring-part-2.md +++ b/src/md/blog/elden-ring-part-2.md @@ -3,6 +3,7 @@ ### Adventures in Elden Ring - Part 2