Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf78ab2

Browse files
committed
🚀 shipped v1.4.1
1 parent1aa252e commitcf78ab2

File tree

11 files changed

+431
-196
lines changed

11 files changed

+431
-196
lines changed

‎CHANGELOG.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
#Changelog
22
[中文更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)
33

4+
##🚀 v1.4.1 (Nov 9, 2019)
5+
6+
✨ Shipped a complete redesigned`archives` page UI and enhanced modern`link style`! Stay being awesome! 👽
7+
8+
###Features ✨
9+
- Complete redesigned`Archives` page!
10+
- Added fade in transition for all pages!
11+
- Archives page now also allow custom header name config! Check out the example theme config below:
12+
13+
```yaml
14+
# Page custom titles
15+
page_titles:
16+
categories:"Categories"
17+
tags:"Tags"
18+
archives:"Archived"
19+
```
20+
21+
### Changes 💥
22+
- New link styles for all pages!
23+
- Redesigned the Read full article button for home page!
24+
425
## 🚀 v1.4.0 (Nov 8, 2019)
526
627
🎉 Lets celebrate the new`Categories` and `Tags` page UI!Now the categories page support multi-levels! Hope you guys love this update! ❤️

‎CHANGELOG_CN.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
#Changelog
22

3+
##🚀 v1.4.1 (十一月 10, 2019)
4+
5+
✨ 重新设计了`归档`页面UI和所有页面的`链接样式`!Stay being awesome! 👽
6+
7+
###Features ✨
8+
- 重新设计了归档页UI!
9+
- 所有`page`都添加了渐渐展示的效果!
10+
- 归档页也支持自定义标题文案,参考一下主题配置:
11+
12+
```yaml
13+
# Page custom titles
14+
page_titles:
15+
categories:"Categories"
16+
tags:"Tags"
17+
archives:"Archived"
18+
```
19+
20+
### Changes 💥
21+
- 所有页面的链接都用上了现在最流行的链接CSS效果。
22+
- 重新设计了`阅读文章`的样式和UI。
23+
324
## 🚀 v1.4.0 (2019-11-08)
425

526
🎉 全新的`分类`和`标签`页UI,分类页现在支持多级分类展示哦,自带很炫酷的效果!希望你们喜欢这次的更新! ❤️

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
**[更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)**
1414

1515

16-
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148015/blog/A-Obsidian-full_vcjfgm.png)
16+
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573323147/blog/A-Obsidian-full_ubmo0d.png)
1717

1818
<details>
1919
<summary>More screen shots</summary>
@@ -24,6 +24,9 @@
2424
###Categories Leveled
2525
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148016/blog/A-Obsidian-categories-level_xtxty9.png)
2626

27+
###Archives
28+
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573323148/blog/A-Obsidian-archives_ffpwf9.png)
29+
2730
###Articles
2831
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148016/blog/A-Obsidian-articles_wlsu2v.png)
2932
</details>
@@ -81,6 +84,7 @@ menu:
8184
page_titles:
8285
categories:"Categories"
8386
tags:"Tags"
87+
archives:"Archived"
8488

8589
# Enable table of content
8690
TOC:true

‎README_CN.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
🇺🇸**[English Doc](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README.md)** |
1212
**[ChangeLog](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
1313

14-
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148015/blog/A-Obsidian-full_vcjfgm.png)
14+
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573323147/blog/A-Obsidian-full_ubmo0d.png)
1515

1616
<details>
1717
<summary>更多主题展示</summary>
@@ -22,6 +22,9 @@
2222
###多级分类
2323
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148016/blog/A-Obsidian-categories-level_xtxty9.png)
2424

25+
###归档页
26+
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573323148/blog/A-Obsidian-archives_ffpwf9.png)
27+
2528
###文章页
2629
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573148016/blog/A-Obsidian-articles_wlsu2v.png)
2730
</details>
@@ -76,6 +79,7 @@ menu:
7679
page_titles:
7780
categories:"Categories"
7881
tags:"Tags"
82+
archives:"Archived"
7983

8084
# 是否启用目录
8185
TOC:true

‎_config.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#! ---------------------------------------------------------------
2121

2222
# Theme version
23-
version:"1.4.0"
23+
version:"1.4.1"
2424

2525
# ---------------------------------------------------------------
2626
# Theme default settings
@@ -37,6 +37,7 @@ menu:
3737
page_titles:
3838
categories:"Categories"
3939
tags:"Tags"
40+
archives:"Archived"
4041

4142
# Social media links
4243
socials:

‎layout/_partial/head.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var description = '';
3434
<%if (theme.rss){%><link rel="alternative" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml"><% }%>
3535
<%if (theme.favicon){%><link rel="icon" href="<%- url_for(theme.favicon) %>"><% }%>
3636
<linkhref="https://fonts.loli.net/css?family=Roboto+Mono|Rubik&display=swap"rel="stylesheet">
37-
<%-css(['//at.alicdn.com/t/font_1429596_xjbfxy4nzcj.css'])%>
37+
<%-css(['//at.alicdn.com/t/font_1429596_serw9b31r4.css'])%>
3838
<%-css(['//cdn.bootcss.com/animate.css/3.7.2/animate.min.css'])%>
3939
<%-css(['//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css'])%>
4040
<%-css(['//cdn.bootcss.com/codemirror/5.48.4/codemirror.min.css'])%>

‎layout/_partial/post/item.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
omission:"..."
6464
})%>
6565
<% }%>
66-
<spanclass="read-more gradient-text"><%-link_to(post.path,__('read_article','Read article'), {class:'posttitle'})%></span>
66+
<spanclass="read-more"><%-link_to(post.path,__('read_article','Read article'), {class:'posttitle'})%> <bclass="iconfont icon-arrow-right- gradient-text"></b></span>
6767
</div>
6868
</div>
6969
</div>

‎layout/_partial/screen.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
omission:'...'
8484
})%>
8585
<% }%>
86-
<spanclass="read-more gradient-text"><%-link_to(first.path,__('read_article','Read article'), {class:"posttitle"})%></span>
86+
<spanclass="read-more"><%-link_to(first.path,__('read_article','Read article'), {class:"posttitle"})%><bclass="iconfont icon-arrow-right- gradient-text"></b></span>
8787
</div>
8888
</div>
8989
<% }%>

‎layout/archive.ejs‎

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,42 @@
66
<divclass="article animated fadeIn">
77
<divclass="main">
88
<divclass="content animated fadeIn">
9-
<divclass="timeline">
10-
<h2class="timeline-title">归档:<%=site.posts.length%>篇</h2>
11-
<%var posts=site.posts.sort('date','desc');%>
12-
<%for(let i=0, year=-1; i<posts.data.length;++i) {%>
13-
<%
14-
constpsg=posts.data[i];
15-
if(psg.date.year()!== year) {
16-
year=psg.date.year();
17-
%>
18-
<h3class="timeline-subtitle"><%= year%></h3>
19-
<% }%>
20-
<divclass="timeline-item">
21-
<time><%-psg.date.format("YYYY-MM-DD")%></time>
22-
<a target="_self" href="<%- url_for(psg.path) %>"><%=psg.title%></a>
23-
</div>
24-
<% }%>
9+
<divclass="set">
10+
<h1style="text-align:center"><%=theme.page_titles.archives||__("Archived")%></h1>
11+
<pstyle="text-align:center">「<%=site.posts.length%> 」</p>
12+
<ulclass="timeline timeline-centered">
13+
<%var posts=site.posts.sort('date','desc');%>
14+
<%for(let i=0, month=-1; i<posts.data.length;++i) {%>
15+
<%
16+
constpsg=posts.data[i];month
17+
if(psg.date.month()!== month) {
18+
month=psg.date.month();
19+
%>
20+
<liclass="timeline-item period">
21+
<divclass="timeline-info"></div>
22+
<divclass="timeline-marker"></div>
23+
<divclass="timeline-content">
24+
<h2class="timeline-title"><%-psg.date.locale(config.language||'').format("MMMM YYYY")%></h2>
25+
</div>
26+
</li>
27+
<% }%>
28+
<liclass="timeline-item">
29+
<divclass="timeline-info">
30+
<spanclass="gradient-text"><%-psg.date.locale(config.language||'').format("MMMM DD, YYYY")%></span>
31+
</div>
32+
<divclass="timeline-marker"></div>
33+
<divclass="timeline-content">
34+
<aclass="timeline-title" target="_self" href="<%- url_for(psg.path) %>"><%=psg.title%></a>
35+
<p>
36+
<%-truncate(strip_html(psg.content), {
37+
length:200,
38+
omission:"..."
39+
})%>
40+
</p>
41+
</div>
42+
</li>
43+
<% }%>
44+
</ul>
2545
</div>
2646
</div>
2747
</div>

‎layout/page.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<divclass="section dark-obsidian">
77
<divclass="article animated fadeIn">
88
<divclass="main animated fadeIn">
9-
<divclass="content">
9+
<divclass="content animated fadeIn">
1010
<%if (page.search||page.type==="search") {%>
1111
<%-partial('_partial/search')%>
1212
<% }elseif (page.type==="tags") {%>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp