File tree Expand file tree Collapse file tree 11 files changed +70
-6
lines changed Expand file tree Collapse file tree 11 files changed +70
-6
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
7
7
gem "jekyll" , "~> 3.8"
8
8
9
9
group :jekyll_plugins do
10
-
10
+ gem "jekyll-redirect-from"
11
11
end
Original file line number Diff line number Diff line change 27
27
pathutil (~> 0.9 )
28
28
rouge (>= 1.7 , < 4 )
29
29
safe_yaml (~> 1.0 )
30
+ jekyll-redirect-from (0.15.0 )
31
+ jekyll (>= 3.3 , < 5.0 )
30
32
jekyll-sass-converter (1.5.2 )
31
33
sass (~> 3.4 )
32
34
jekyll-watch (2.2.1 )
@@ -56,6 +58,7 @@ PLATFORMS
56
58
57
59
DEPENDENCIES
58
60
jekyll (~> 3.8 )
61
+ jekyll-redirect-from
59
62
60
63
BUNDLED WITH
61
64
1.17.2
Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ github_username: rust-analyzer
6
6
exclude :
7
7
- wasm-demo/
8
8
- vendor
9
+ plugins :
10
+ - jekyll-redirect-from
Original file line number Diff line number Diff line change 20
20
{% if page.url != "/" %}
21
21
< header >
22
22
< a class ="nav-link site-title " href ="{{ site.baseurl }}/ "> {{ site.title }}</ a >
23
+ < a class ="nav-link " href ="/blog "> Blog</ a >
24
+ < a class ="nav-link " href ="/thisweek "> Changelog</ a >
23
25
< a class ="nav-link " href ="https://opencollective.com/rust-analyzer/ "> Sponsor</ a >
24
26
</ header >
25
27
{% endif %}
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ ---
4
+ < h2 > Posts</ h2 >
5
+
6
+ < ul class ="post-list ">
7
+ {% for post in site.categories.blog %}
8
+ < li >
9
+ < h3 >
10
+ < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }}</ span > < a class ="post-link "
11
+ href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
12
+ </ h3 >
13
+ </ li >
14
+ {% endfor %}
15
+ </ ul >
Original file line number Diff line number Diff line change 2
2
layout : post
3
3
title : " Cost of rust-analyzer"
4
4
date : 2019-10-16 11:00:00 +0200
5
+ redirect_from : " /2019/10/16/finance.html"
5
6
---
6
7
7
8
In this post, we'll talk about financial side of the rust-analyzer project.
Original file line number Diff line number Diff line change 2
2
layout : post
3
3
title : " Find Usages"
4
4
date : 2019-11-13 11:00:00 +0200
5
+ redirect_from : " /2019/11/13/find-usages.html"
5
6
---
6
7
7
8
Last month, rust-analyzer gained an exciting new feature: find usages. It was implemented by [ @viorina ] in [ #1892 ] .
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ footer > p {
122
122
.post-list {
123
123
margin-left : 0 ;
124
124
list-style : none;
125
- align-self : center;
126
125
}
127
126
128
127
.post-list > li {
Original file line number Diff line number Diff line change @@ -62,13 +62,38 @@ <h2>Support</h2>
62
62
< h2 > Latest News</ h2 >
63
63
64
64
< ul class ="post-list ">
65
- {% for post in site.posts %}
65
+ {% assign post = site.categories.thisweek.first %}
66
66
< li >
67
67
< h3 >
68
- < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }}</ span > < a class ="post-link "
69
- href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
68
+ < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }}</ span >
69
+ < a class ="post-link " href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
70
+ </ h3 >
71
+ </ li >
72
+
73
+ < li >
74
+ < h3 >
75
+ < a class ="post-link " href ="/thisweek "> All</ a >
76
+ </ h3 >
77
+ </ li >
78
+ </ ul >
79
+ </ section >
80
+
81
+ < section >
82
+ < h2 > Latest Post</ h2 >
83
+
84
+ < ul class ="post-list ">
85
+ {% assign post = site.categories.blog.first %}
86
+ < li >
87
+ < h3 >
88
+ < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }}</ span >
89
+ < a class ="post-link " href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
90
+ </ h3 >
91
+ </ li >
92
+
93
+ < li >
94
+ < h3 >
95
+ < a class ="post-link " href ="/blog "> All</ a >
70
96
</ h3 >
71
97
</ li >
72
- {% endfor %}
73
98
</ ul >
74
99
</ section >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ ---
4
+ < h2 > This Week In rust-analyzer</ h2 >
5
+
6
+ < ul class ="post-list ">
7
+ {% for post in site.categories.thisweek %}
8
+ < li >
9
+ < h3 >
10
+ < span class ="post-meta "> {{ post.date | date: "%b %-d, %Y" }}</ span > < a class ="post-link "
11
+ href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
12
+ </ h3 >
13
+ </ li >
14
+ {% endfor %}
15
+ </ ul >
Original file line number Diff line number Diff line change 2
2
layout : post
3
3
title : " Changelog #0"
4
4
date : 2019-07-24 14:34:00 +0200
5
+ redirect_from : " /2019/07/24/changelog-0.html"
5
6
---
6
7
7
8
Hello!
You can’t perform that action at this time.
0 commit comments