From bc2f0ec6f9426f60e8035269f5e48f3cc3f0cc52 Mon Sep 17 00:00:00 2001 From: Doge Date: Tue, 11 May 2021 10:01:59 +0800 Subject: Favicon support --- _config.yml | 5 +++-- layout/_partial/head.ejs | 5 ++--- layout/_partial/scripts.ejs | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index defe9bf..244a5e2 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,5 @@ logo: false +favicon: false timeformat: "MMM, D YYYY" podcast: true lazyload: true @@ -19,5 +20,5 @@ rss: path: '/feed.rss' config: email: 'privet@utc3.live' - category: Education - explicit: No \ No newline at end of file + category: 'Education' + explicit: false \ No newline at end of file diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index c52c231..43b1d5c 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -1,6 +1,6 @@ <%= config.title %> - <% if (config.favicon) favicon_tag(config.favicon) %> + <% if (theme.favicon) favicon_tag(theme.favicon) %> @@ -19,8 +19,7 @@ <% } %> + - - <%- css("css/style.min.css") %> \ No newline at end of file diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index c3af22a..12614e9 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -35,6 +35,9 @@ <% } %> + + + <% if (is_post() && theme.podcast && page.podcast) { %> -- cgit v1.2.3