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/ ## Source: https://github.com/hexojs/hexo/
# Site # Site
title: Fediverse title: Fediverse.Party
subtitle: subtitle:
description: explore federated networks description: making social media free, federated and fun
author: lostinlight author: lostinlight
language: language:
- en - en

View File

@ -34,6 +34,8 @@
<meta property="og:title" content="<% if (page.title) { %><%=page.title%><% } else { %> <%= config.title %> <% } %>"> <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: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" 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> <title>
<% if (page.title) { %> <% if (page.title) { %>