From affca0d5e31f862b3a5022bd49f40cea227707a2 Mon Sep 17 00:00:00 2001 From: Doge Date: Mon, 3 May 2021 18:36:16 +0800 Subject: Add modules support --- _config.yml | 3 ++- layout/_partial/head.ejs | 18 ++++++++++-------- layout/_partial/scripts.ejs | 7 ++++++- layout/layout.ejs | 2 +- source/css/style.css | 0 5 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 source/css/style.css diff --git a/_config.yml b/_config.yml index 665402d..232ab37 100644 --- a/_config.yml +++ b/_config.yml @@ -1,2 +1,3 @@ podcast: true -lazyload: true \ No newline at end of file +lazyload: true +highlight: true \ No newline at end of file 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 diff --git a/source/css/style.css b/source/css/style.css new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3