From 50370143faa1229557345dc615a355e3ab1e854b Mon Sep 17 00:00:00 2001 From: lostinlight Date: Fri, 25 Sep 2020 00:10:11 +0300 Subject: [PATCH] Show both page.title and default title in OG --- source/en/fediverse/index.md | 2 +- source/en/knowledge/index.md | 2 +- themes/starter/layout/_partial/head.ejs | 4 ++-- themes/starter/layout/_partial/heroheader.ejs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/en/fediverse/index.md b/source/en/fediverse/index.md index b2d93f0..cd18f54 100644 --- a/source/en/fediverse/index.md +++ b/source/en/fediverse/index.md @@ -1,7 +1,7 @@ --- layout: "fediverse" -title: "FEDIVERSE" +title: "About Fediverse" subtitle: "diversity is strength" banner: "/img/fediverse-bg.jpg" percent: "50% 50%" diff --git a/source/en/knowledge/index.md b/source/en/knowledge/index.md index 9f77c42..3ce0683 100644 --- a/source/en/knowledge/index.md +++ b/source/en/knowledge/index.md @@ -1,7 +1,7 @@ --- layout: "knowledge" -title: "KNOWLEDGE" +title: "Knowledge" subtitle: "the truth isn't always beauty, but the hunger for it is" banner: "/img/knowledge-bg.jpg" percent: "50% 50%" diff --git a/themes/starter/layout/_partial/head.ejs b/themes/starter/layout/_partial/head.ejs index bd7b6f6..0ffbdb2 100644 --- a/themes/starter/layout/_partial/head.ejs +++ b/themes/starter/layout/_partial/head.ejs @@ -10,7 +10,7 @@ <% } %> - + @@ -18,7 +18,7 @@ - + diff --git a/themes/starter/layout/_partial/heroheader.ejs b/themes/starter/layout/_partial/heroheader.ejs index 5b3b70a..4ff6a4d 100644 --- a/themes/starter/layout/_partial/heroheader.ejs +++ b/themes/starter/layout/_partial/heroheader.ejs @@ -8,7 +8,7 @@ <% if (post) {%> <%- url_for(post + '/' + page.banner) %> <%} else { %> <%- url_for(page.banner) %> <% } %> <% } else { %> <%= url_for('img/knowledge-bg.jpg') %> <% } %>') <% if (page.percent) { %> <%= page.percent %> <% } else { %> 50% 50% <% } %> no-repeat; background-size: cover;">
-

<%= page.title %>

+

<%=page.title%>

<%= page.subtitle || "" %>

<%- date %> <% if (page.authors) { %>