perf(config): change the position of the logo configuration item
This commit is contained in:
parent
76fb0a21f9
commit
cfafbb43bf
|
@ -11,10 +11,6 @@ base_info:
|
||||||
# Your blog website url
|
# Your blog website url
|
||||||
url: https://keep.xpoet.cn/
|
url: https://keep.xpoet.cn/
|
||||||
|
|
||||||
# Your blog website logo image
|
|
||||||
# You can use local image, image external link or don’t fill
|
|
||||||
logo: /images/logo.svg
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Theme style settings
|
# Theme style settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -22,6 +18,10 @@ style:
|
||||||
# Theme primary color
|
# Theme primary color
|
||||||
primary_color: "#0066CC"
|
primary_color: "#0066CC"
|
||||||
|
|
||||||
|
# Your blog website logo image
|
||||||
|
# You can use local image, image external link or don’t fill
|
||||||
|
logo: /images/logo.svg
|
||||||
|
|
||||||
# Avatar (You can use local image or image external link)
|
# Avatar (You can use local image or image external link)
|
||||||
avatar: /images/avatar.svg
|
avatar: /images/avatar.svg
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
<header class="header-wrapper">
|
<header class="header-wrapper">
|
||||||
|
|
||||||
<%
|
<%
|
||||||
const { title, logo, logo_img } = theme.base_info
|
const { title: bi_title, logo_img: bi_logo_img } = theme.base_info
|
||||||
const { title: configTitle } = config
|
const { logo: s_logo } = theme.style
|
||||||
|
const { title: config_title } = config
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<div class="header-content<%- (theme.style.first_screen.enable === true && is_home() && !page.prev) ? ' has-first-screen' : '' %>">
|
<div class="header-content<%- (theme.style.first_screen.enable === true && is_home() && !page.prev) ? ' has-first-screen' : '' %>">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<% if (logo || logo_img) { %>
|
<% if (s_logo || bi_logo_img) { %>
|
||||||
<a class="logo-image" href="/">
|
<a class="logo-image" href="/">
|
||||||
<%- image_tag(logo || logo_img) %>
|
<%- image_tag(s_logo || bi_logo_img) %>
|
||||||
</a>
|
</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
<a class="logo-title" href="/">
|
<a class="logo-title" href="/">
|
||||||
<%= title || configTitle || 'Keep Theme' %>
|
<%= bi_title || config_title || 'Keep Theme' %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ $logo-image-box-width = 46px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (hexo-config('base_info.logo_img') || hexo-config('base_info.logo')) {
|
if (hexo-config('base_info.logo_img') || hexo-config('style.logo')) {
|
||||||
.logo-image {
|
.logo-image {
|
||||||
width: $logo-image-box-width;
|
width: $logo-image-box-width;
|
||||||
height: $logo-image-box-width;
|
height: $logo-image-box-width;
|
||||||
|
|
Loading…
Reference in New Issue