Set width, height of og:image (closes #30)

This commit is contained in:
lostinlight 2020-09-24 00:12:15 +03:00
parent 34754053d8
commit 1e4c1b0b24
2 changed files with 4 additions and 2 deletions

View File

@ -3,9 +3,9 @@
## Source: https://github.com/hexojs/hexo/
# Site
title: Fediverse
title: Fediverse.Party
subtitle:
description: explore federated networks
description: making social media free, federated and fun
author: lostinlight
language:
- en

View File

@ -34,6 +34,8 @@
<meta property="og:title" content="<% if (page.title) { %><%=page.title%><% } else { %> <%= config.title %> <% } %>">
<meta property="og:description" content="<% if (page.preview) { %><%=page.preview%><% } else { %> <%= config.description %> <% } %>">
<meta property="og:image" content="<%= config.url %>/<% if (page.path.match(/post/) && page.banner) { %><%=page.path%><%=page.banner%><% } else { %><%=config.ogImage%><% } %>" />
<meta property="og:image:width" content="558">
<meta property="og:image:height" content="558">
<title>
<% if (page.title) { %>