1.安装
git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
2.修改配置

3.点击所有文章,模块缺失
按照提示即可解决

4.隐藏内容
yilia主题目录下的配置修改如下

md文件内容使用下图代码隔断

4.头像图片显示问题
将头像图片(av.png)
放入yilia主题目录下方的source目录,然后将主题配置修改为 avatar: /av.png
即可
5.分页显示
修改主目录配置
per_page: 5
pagination_dir: page
6.添加音乐
其实就是把网易云歌曲的外链放入到页面中
点击网易云歌曲的外链生成器

复制外链代码

修改yilia主题目录_partial文件夹下的left-col.ejs文件
<nav class="header-nav">
<div class="social">
<% for (var i in theme.subnav){ %>
<a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"><i class="icon-<%= i %>"></i></a>
<%}%>
</div>
<div style="position:absolute; bottom:-120px;left:auto;width:85%">
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=240 height=86 src="//music.163.com/outchain/player?type=2&id=1307512485&auto=1&height=66"></iframe>
</div>
</nav>
效果如下

网友评论