From 34e8c93c9836ab19d2b582c72650ed85799c53b2 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sat, 31 Oct 2020 03:24:31 +0500 Subject: [PATCH] layout: extract common head parts --- src/layouts/default.ejs | 8 ++++---- src/layouts/post.ejs | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/layouts/default.ejs b/src/layouts/default.ejs index b0ee4c9..62aa62d 100644 --- a/src/layouts/default.ejs +++ b/src/layouts/default.ejs @@ -1,16 +1,16 @@ - - - + <%- include('partials/head-common') %> + <%= page.title || site.title %> + - + <%- include('partials/head-fonts') %> <%- body %> diff --git a/src/layouts/post.ejs b/src/layouts/post.ejs index f21ce33..466cbc7 100644 --- a/src/layouts/post.ejs +++ b/src/layouts/post.ejs @@ -1,16 +1,16 @@ - - - + <%- include('partials/head-common') %> + <%= page.title + ' / ' + site.title %> + - + <%- include('partials/head-fonts') %> @@ -24,7 +24,7 @@ <%= page.section %> <% } %> <% if (page.year) { %> -
  • +
  • <%= page.year %>
  • <% } %>