怎么样将home_logo_image删除
Closed this issue · 3 comments
HeGaoYuan commented
我想将home_logo_image删除,尝试了两个办法
- home_logo_image:
enable: true
border: false
url: css/images/null.jpg(目录下没有null.jpg) - home_logo_image:
enable: true
border: false
url: - home_logo_image:
enable: flase
border: false
url: css/images/null.jpg(目录下没有null.jpg) - home_logo_image:
enable: flase
border: false
url:
结果:
1: 如图1
2: hexo s 编译不过
3: 如图2
4: 如图2
HeGaoYuan commented
@iTimeTraveler 麻烦了
非常喜欢你的主题风格,还望抽空回答
iTimeTraveler commented
@HeGaoYuan 我这边实验第一种方式,不会出现图1的这种现象,也是Chrome。
如果你的还是不行的话,建议你在使用第一种配置的基础上,改动Hiker主题文件夹下的layout/_partial/header.ejs
文件的第164行,如下:
<% if (theme.home_logo_image.enable){ %>
<% if (theme.home_logo_image.border){ %>
<img id="homelogoimg" src="<%- partial('post/urlconvert', {tempUrl: theme.home_logo_image.url}) %>" style="border-style: solid; border-color: rgba(24,24,21,0.1); border-width: 8px;">
<% } else {%> <!-- 删掉下面这一行 -->
<img id="homelogoimg" src="<%- partial('post/urlconvert', {tempUrl: theme.home_logo_image.url}) %>" >
<% } %>
<% } else {%>
<div class="homelogoback" <% if (backgroundTheme != "POLYLINE"){ %> style="border: 1px solid #404040;" <% } %>>
<h1><a href="#content" id="logo"><%= config.title %></a></h1>
<h3><%= config.description%></h3>
<h5><%= config.author %></h5>
<!-- <p><a href="https://github.com/iTimeTraveler" target="_blank">Github</a></p> -->
</div>
<% } %>
删除代码中注释的那一行即可
HeGaoYuan commented
我的chrome会出现图1的现象
但是按照你的建议修改了layout/_partial/header.ejs
文件,现在可以了
谢谢了: )