Skip to content

Commit

Permalink
feat: 添加图标
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Jun 21, 2024
1 parent 1efaf2a commit 036afdb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ show_count: false
recent_posts_limits: 5

social:
# email: mailto:[email protected]
# github: https://github.com/yourname
# google: https://plus.google.com/yourname
# twitter: https://twitter.com/yourname
Expand Down Expand Up @@ -260,7 +261,7 @@ live2d:

reimu_cursor: true

icon_font: 4552607_09mhdxci6yrk
icon_font: 4552607_tq6stt6tcg

# Dependent cdn links
vendor:
Expand Down
3 changes: 3 additions & 0 deletions source/css/_partial/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ $sidebar-state-content
height: 25px
font: 20px font-icon

.icon-email
color: #ff7777

.icon-github
color: #191717

Expand Down
6 changes: 5 additions & 1 deletion source/css/fontawesome.styl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ font-icon = "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free
.post-sticky
&:before
font-family: font-icon
content:"\f087"
content:"\f164"

.reimu-popup
.popup-btn-close
Expand Down Expand Up @@ -242,6 +242,10 @@ font-icon = "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free
&:before
content: "\f1b6"

.icon-email
&:before
content: "\f0e0"

.sidebar-btn-wrapper
.sidebar-toc-btn
&:before
Expand Down
4 changes: 4 additions & 0 deletions source/css/iconfont.styl
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ _c = '//at.alicdn.com/t/c/font_' + id + '.ttf'
&:before
content: "\e624"

.icon-email
&:before
content: "\e63c"

.sidebar-btn-wrapper
.sidebar-toc-btn
&:before
Expand Down

0 comments on commit 036afdb

Please sign in to comment.