Skip to content

Commit 8d8964c

Browse files
iyuqJacksonTian
authored andcommitted
fix: favicon path (#96)
* fix: favicon path * fff
1 parent 352bcce commit 8d8964c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/view/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<link title="RSS" type="application/rss+xml" rel="alternate" href="/rss"/>
2020

2121
<% if (config.site_icon) { %>
22-
<link rel="icon" href="<%- staticFile(config.site_icon) %>" type="image/x-icon"/>
22+
<link rel="icon" href="<%- helper.staticFile(config.site_icon) %>" type="image/x-icon"/>
2323
<% } %>
2424

2525
<!-- style -->

config/config.default.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ module.exports = appInfo => {
1010

1111
config.site_logo = '/public/images/cnodejs_light.svg';
1212

13+
config.site_icon = '/public/images/cnode_icon_32.png';
14+
1315
// debug 为 true 时,用于本地调试
1416
config.debug = true;
1517

0 commit comments

Comments
 (0)