Commit 8f49d05a authored by lostinlight's avatar lostinlight

Fix OG tags - closes #10

parent b4a9b423
......@@ -5,7 +5,7 @@
# Site
title: Fediverse
subtitle:
description: Fediverse Guide
description: exploring federated networks
author: lostinlight
language:
- en
......
......@@ -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%><% } %>" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment