Skip to content

Commit

Permalink
✨feat: update about style
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose wan committed Jan 27, 2024
1 parent 7cc9cdb commit dce3e48
Show file tree
Hide file tree
Showing 23 changed files with 789 additions and 788 deletions.
6 changes: 1 addition & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,18 +404,14 @@ aside:
errorpage:
# 图片
# image
img: https://npm.elemecdn.com/wzheo-absolute/image/source/404.png
img: https://bu.dusays.com/2023/03/03/6401a7906aa4a.gif
# 文字
# text
text: =awa= 页面走丢了
# 推荐文章列表
# Recommended article list
recommendList: true

# 关于页
# about page
about: false

# 即刻说说页
# jike says page
# 前置要求:需配置即刻说说页面
Expand Down
2 changes: 1 addition & 1 deletion languages/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ page:
tags: All tags
categories: All categories
archives: Archives
echarts: Echarts
404: Page not found

home:
bannertext: Just browsing
Expand Down
2 changes: 1 addition & 1 deletion languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ page:
tags: 全部标签
categories: 全部分类
archives: 文章
echarts: 博客统计
404: 页面没有找到

nav:
site_name_title: 返回博客主页
Expand Down
2 changes: 1 addition & 1 deletion layout/404.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ block content
if theme.errorpage.recommendList
.aside-list
.aside-list-group
each post, index in site.posts.sort('-date').data
each post, index in site.posts.sort('-date').data.slice(0, 6)
if index >= 5
break
.aside-list-item
Expand Down
2 changes: 1 addition & 1 deletion layout/includes/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- else if (is_archive()) title = _p('page.archives') + (page.year || "")
- else if (is_tag()) title = _p('page.tag')+': ' + page.tag
- else if (is_category()) title = _p('page.category') +': ' + page.category
- else if (page.type === '404') title = '404'+': ' + theme.errorpage.text
- else if (page.type === '404') title = _p('page.404')
- else if (page.type === 'tags') title = _p('page.tags')
- else if (page.type === 'categories') title = _p('page.categories')
- else if (is_post() || is_page()) title = page.title
Expand Down
2 changes: 1 addition & 1 deletion layout/includes/page/about.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if theme.about && site.data.about
if site.data.about
#about-page
include ../widgets/page/about/authorinfo
include ../widgets/page/about/contentinfo
Expand Down
7 changes: 6 additions & 1 deletion source/css/_layout/basic.styl
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,9 @@ table thead
background var(--sco-secondbg)

b, strong
color var(--sco-lighttext)
color var(--sco-lighttext)

.button--animated
border-radius 8px
transition .3s
position relative
Loading

0 comments on commit dce3e48

Please sign in to comment.