Fix OG tags - closes #10

This commit is contained in:
lostinlight 2020-01-08 17:56:44 +03:00
parent b4a9b42359
commit 8f49d05a8f
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# Site
title: Fediverse
subtitle:
description: Fediverse Guide
description: exploring federated networks
author: lostinlight
language:
- en

View File

@ -31,7 +31,7 @@
<link rel="manifest" href="<%- url_for('manifest.json') %>">
<meta name="theme-color" content="#f4f4f4">
<link rel="shortcut icon" href="<%- url_for('favicon.ico') %>">
<meta property="og:title" content="Fediverse Guide">
<meta property="og:title" content="<% if (page.preview) { %><%=page.preview%><% } else { %> <%= config.description %> <% } %>">
<meta property="og:description" content="<%= config.description %>">
<meta property="og:image" content="<%= config.url %>/<% if (page.path.match(/post/) && page.banner) { %><%=page.path%><%=page.banner%><% } else { %><%=config.ogImage%><% } %>" />