From 1e35ae64d24ea38d80d455ac34b2dbff27fe9cbe Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 2 Sep 2019 09:41:03 +0800 Subject: [PATCH] update --- layout/archive.ejs | 9 +++------ source/less/_archive.less | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/layout/archive.ejs b/layout/archive.ejs index cf8e0eb..c57b19c 100755 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -24,17 +24,14 @@ <% } else if (post.date) { %> <%= date(post.date, config.date_format) %> <% } %> - <% if(post.music){ %> -   - <% } %> - <% if(post.video){ %> -   + <% if(post.music && post.music.enable != false){ %> +   <% } %> <% if (post.icon) { %>   <% } %> <% (post.icons && post.icons||[]).forEach(function(icon){ %> -   +   <% }) %> diff --git a/source/less/_archive.less b/source/less/_archive.less index bf0874d..6624f86 100755 --- a/source/less/_archive.less +++ b/source/less/_archive.less @@ -46,6 +46,30 @@ color: fade(@color_text_main, 90%); i{ color: @theme_main; + &.music { + color: @color_text_highlight; + } + &.red { + color: @color_mac_close; + } + &.green { + color: @color_mac_maximize; + } + &.yellow { + color: @color_mac_minimize; + } + &.blue { + color: @color_mac_finder; + } + &.theme { + color: @theme_main; + } + &.accent { + color: @color_text_highlight; + } + &.orange { + color: @color_md_deep_orange; + } } } }