提交 5c95bf57 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix: Not show tag icon when empty & make header icon configable

上级 586e597e
......@@ -6,9 +6,9 @@
menu:
home: /
archives: /archives
categories: /categories
tags: /tags
about: /about
categories:
tags:
about:
# XXX: /xxx
# Favicon
......@@ -30,7 +30,7 @@ social:
# Subscribe of email and rss
feed:
mail:
rss:
# rss:
# Stylesheets loaded in the <head>
stylesheets:
......@@ -80,7 +80,7 @@ highlight_theme: light
# Reward
# --------------------------------------------------
reward:
enable: true
enable: false
qr_img_url:
alipay:
wechat:
......
......@@ -6,11 +6,12 @@ header#header
ul.header-nav-menu-inner
if theme.menu
each url, label in theme.menu
li
a(href=url)
if (theme.header_menu_icon_show)
i(class=`header-nav-menu-icon icon-${label}`)
!= _p(`nav.${label}`)
if url
li
a(href=url)
if (theme.header_menu_icon_show)
i(class=`header-nav-menu-icon icon-${label}`)
!= _p(`nav.${label}`)
div.header-nav-search
span!= _p('nav.search')
......
......@@ -27,8 +27,8 @@ block content
span.copyright-value
!= _p('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license)
div.post-footer-tags
if page.tags && page.tags.data
if page.tags && page.tags.length > 0
div.post-footer-tags
each tag in page.tags.data
span!= link_to(tag.permalink, tag.name)
......
......@@ -6,7 +6,7 @@
margin: 1rem auto 1.5rem
border-radius: 10px
padding: .2rem 1rem
color: $white-light
color: $white
background-color: $reward-btn-color
transition: background-color .2s
cursor: pointer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册