Skip to content

Commit

Permalink
update social meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcsik committed Jul 31, 2024
1 parent fe7b63f commit 4d04df3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/ejs/_header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><%= context.title %></title>
<title><%= context.title %><% if (context.subtitle) { %> - <%= context.subtitle %><% } %> | aorcsik.com</title>
<meta name="description" content="<%= context.description %>">
<link rel="canonical" href="<%= context.basePath %><%= context.path %>">

<meta property="og:title" content="<%= context.title %>">
<meta property="og:title" content="<%= context.title %><% if (context.subtitle) { %> - <%= context.subtitle %><% } %>">
<meta property="og:url" content="<%= context.basePath %><%= context.path %>">
<meta property="og:description" content="<%= context.description %>">
<% if (context.image) { %><meta property="og:image" content="<%= context.image %>"><% } %>

<meta name="twitter:card" content="summary">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@aorcsik">
<meta name="twitter:creator" content="@aorcsik">
<meta name="twitter:title" content="<%= context.title %><% if (context.subtitle) { %> - <%= context.subtitle %><% } %>">
<meta name="twitter:description" content="<%= context.description %>">
<% if (context.image) { %><meta name="twitter:image" content="<%= context.image %>"><% } %>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Expand Down
2 changes: 0 additions & 2 deletions src/js/BlogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ class BlogPage
}
});

if (!data.description) data.description = data.subtitle;

// const varMatches = markdownString.matchAll(/\[(.*?)\]\(#var:(.*)\)/gm);
// if (varMatches) {
// [...varMatches].forEach(varMatch => {
Expand Down
1 change: 1 addition & 0 deletions src/md/blog/elden-ring-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Adventures in Elden Ring - Part 2

<!-- {
"description": "I cleared the Weeping Peninsula dungeons, checked some Evergaols and then started exploring Liurnia all the way up to Caria Manor.",
"image": "https://static.aorcsik.com/blog/elden-ring-social.webp",
"author": "aorcsik",
"published_at": "2024-07-11",
Expand Down
2 changes: 2 additions & 0 deletions src/md/blog/elden-ring-part-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Adventures in Elden Ring - Part 3

<!-- {
"description": "I started exploring Caelid, tied some loose ends in Limgrave and went back to Liurnia to kill a dragon.",
"image": "https://static.aorcsik.com/blog/elden-ring-social.webp",
"author": "aorcsik",
"published_at": "2024-07-16",
Expand Down Expand Up @@ -77,6 +78,7 @@ I was tired, had to go back to Roundtable Hold and maybe tell people about my ad
[video]

I felt restless, so I decided to take a look at the eastern side of Liurnia. I hate the soldiers with four hands, they shoot arrows like crazy and when you get close it feels like in a blender. Damn.

There are also a lot of wolves around here. And they are tougher. While I was escaping a pack I stumbled upon a Tibia Mariner, the death creature with the boat. I liked this fight in Limgrave before so I decided to give it a try. It want well and I got skeletal bandit ashes too. Nice ending of a long day. Time to rest.

[video]
Expand Down
1 change: 1 addition & 0 deletions src/md/blog/elden-ring.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Adventures in Elden Ring - Part 1

<!-- {
"description": "My first days in the Lands Between, early boss encounters, leveling my character and defeating the first shardbearer.",
"image": "https://static.aorcsik.com/blog/elden-ring-social.webp",
"author": "aorcsik",
"published_at": "2024-07-08",
Expand Down

0 comments on commit 4d04df3

Please sign in to comment.