From affca0d5e31f862b3a5022bd49f40cea227707a2 Mon Sep 17 00:00:00 2001 From: Doge Date: Mon, 3 May 2021 18:36:16 +0800 Subject: Add modules support --- layout/_partial/head.ejs | 18 ++++++++++-------- layout/_partial/scripts.ejs | 7 ++++++- layout/layout.ejs | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) (limited to 'layout') diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 6720df0..6e6f5fd 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -1,5 +1,6 @@ - <%= title %> + <%= config.title %> + <% if (config.favicon) favicon_tag(config.favicon) %> @@ -10,17 +11,18 @@ - - - - <%- favicon_tag(config.favicon) %> + <% if (config.keywords) { %> + + <% } %> + <% if (config.description) { %> + + <% } %> - <% if (theme.podcast) { %> + <% if (is_post() && theme.podcast && post.podcast) { %> <% } %> - - + <%- css("css/style.css") %> \ No newline at end of file diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index a982f7d..662702a 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -7,4 +7,9 @@ threshold: 0 }; -<% } %> \ No newline at end of file +<% } %> + + + + + diff --git a/layout/layout.ejs b/layout/layout.ejs index 4ae62cc..96d7f6a 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -6,7 +6,7 @@
<%- body %>
- <%- partial('partial/footer') %> + <%- partial('_partial/footer') %> <%- partial('_partial/scripts') %> \ No newline at end of file -- cgit v1.2.3