Skip to content

Commit

Permalink
Merge pull request #44 from EvanNotFound/dev
Browse files Browse the repository at this point in the history
v0.5.1
  • Loading branch information
EvanNotFound authored Jan 6, 2023
2 parents 50fab5e + 82424c8 commit 27961d2
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 18 deletions.
14 changes: 13 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,20 @@ footer:
customize: # customize footer message, can be html code
icp: # ICP record number of your website, Can be null

# ---------------------------------------------------------------------------------------
# Custom html code
# ---------------------------------------------------------------------------------------
inject:
enable: false
head: # inject code into <head> tag
-
-
footer: # inject code into <footer> tag
-
-

# ---------------------------------------------------------------------------------------
# Redefine Theme version (Please dont modify it)
# Please go to github to update the latest version frequently
# ---------------------------------------------------------------------------------------
version: 0.5.0
version: 0.5.1
5 changes: 5 additions & 0 deletions layout/_partial/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
<% if (theme.footer.hasOwnProperty('customize') && theme.footer.customize) { %>
<div class="customize-info info-item"><%- theme.footer.customize %></div>
<% } %>

<% if (theme.inject.enable == true) { %>
<% for (let i in theme.inject.footer) { %>
<%- theme.inject.footer[i] %>
<% } }%>

</div>
</footer>
6 changes: 6 additions & 0 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
<%- __css('css/duotone.min.css') %>
<% } %>
<%- __css('css/css2.css') %>

<% if (theme.inject.enable == true) { %>
<% for (let i in theme.inject.head) { %>
<%- theme.inject.head[i] %>
<% } }%>

<%- export_config() %>
</head>

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-redefine",
"version": "0.5.0",
"version": "0.5.1",
"private": false,
"description": "\"Redefine\" hexo theme is a simple & fast & pure theme, but with no compromise.",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions source/css/layout/_partial/header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ $logo-image-box-width = 46px
transition-t("all", "0", "0.2", "linear")

li a {
white-space nowrap
color var(--default-text-color)
font-size 1rem
padding 3px 15px
Expand Down
27 changes: 13 additions & 14 deletions source/css/layout/_partial/toc.styl
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,25 @@

.active-current {
.nav-number, .nav-text {
&::before {
content " "
width 10px
height 1.7rem
margin auto 0
transform translate(-12px,0)
border-left 2px solid var(--primary-color)
position absolute
margin-right 4px
color var(--primary-color)
}

color var(--primary-color) !important
font-weight bold
display block
transition none
}
}


.active-current > span {
&:first-child::before {
content " "
width 10px
height 1.7rem
margin auto 0
transform translate(-12px,0)
border-left 2px solid var(--primary-color)
position absolute
margin-right 4px
color var(--primary-color)
}
}
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions source/css/layout/home-content.styl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@
margin -28px -28px 20px -28px

+redefine-tablet() {
border-radius 7px
border-radius 14.4px
margin -22.4px -22.4px 16px -22.4px
padding-bottom 22.4px
}

+redefine-mobile() {
border-radius 5px
border-radius 10.8px
margin -16.8px -16.8px 12px -16.8px
padding-bottom 16.8px
}

img {
Expand Down

0 comments on commit 27961d2

Please sign in to comment.