hexo-theme-icarus 草稿水印显示

hexo-theme-icarus 草稿水印显示

themes\icarus\layout\common\article.ejs

1
2
3
4
<div class="card">

// 修改为
<div class="card <%- !index && !page.published ? 'not_published' : '' %>">

themes\icarus\source\css\style.styl

1
2
3
4
.card
&.not_published {
background-image: url(https://i.loli.net/2021/02/11/k59DHQgrNAx8tR7.png);
}

效果

评论

往上