File tree Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
title : Rust Blog
2
2
index-title : The Rust Programming Language Blog
3
3
description : Empowering everyone to build reliable and efficient software.
4
+ index-html : This is the <b>main Rust blog</b>. We use this blog to
5
+ announce big developments in the world of Rust.
4
6
maintained-by : the Rust Team
5
7
requires-team : false
6
8
Original file line number Diff line number Diff line change 1
1
title : Inside Rust blog
2
2
index-title : the Inside Rust blog
3
3
description : Want to follow along with Rust development? Curious how you might get involved? Take a look!
4
+ index-html : This is the <b>"Inside Rust"</b> blog. This blog is aimed at those who wish
5
+ to follow along with Rust development. The various
6
+ <a href="https://www.rust-lang.org/governance">Rust teams and working groups</a>
7
+ use this blog to post status updates, calls for help, and other
8
+ similar announcements.
4
9
maintained-by : the Rust Teams
5
10
requires-team : true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ pub(crate) struct Manifest {
13
13
pub ( crate ) index_title : String ,
14
14
pub ( crate ) description : String ,
15
15
pub ( crate ) maintained_by : String ,
16
+ pub ( crate ) index_html : String ,
16
17
pub ( crate ) requires_team : bool ,
17
18
}
18
19
@@ -22,6 +23,7 @@ pub(crate) struct Blog {
22
23
index_title : String ,
23
24
description : String ,
24
25
maintained_by : String ,
26
+ index_html : String ,
25
27
#[ serde( serialize_with = "add_postfix_slash" ) ]
26
28
prefix : PathBuf ,
27
29
posts : Vec < Post > ,
@@ -55,6 +57,7 @@ impl Blog {
55
57
index_title : manifest. index_title ,
56
58
description : manifest. description ,
57
59
maintained_by : manifest. maintained_by ,
60
+ index_html : manifest. index_html ,
58
61
prefix,
59
62
posts,
60
63
} )
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ impl Generator {
134
134
let other_blogs: Vec < _ > = self . blogs . iter ( ) . filter ( |b| b. index_title ( ) != blog. index_title ( ) )
135
135
. map ( |other_blog| json ! ( {
136
136
"name" : other_blog. index_title( ) ,
137
- "url" : other_blog. prefix( ) . join( "index.html" ) ,
137
+ "url" : PathBuf :: from ( "/" ) . join ( other_blog. prefix( ) ) . join( "index.html" ) ,
138
138
} ) )
139
139
. collect ( ) ;
140
140
Original file line number Diff line number Diff line change 1
1
{{ #*inline " page" }}
2
- <header class =" mt3 mt0-ns mb6 -ns" >
2
+ <header class =" mt3 mt0-ns mb4 -ns" >
3
3
<div class =" container flex flex-column flex-row-l justify-between-l" >
4
- <div class =" mw8 -l" >
5
- <h1 >Posts</ h1 >
4
+ <div class =" mw6 -l" >
5
+ <p > {{{ blog.index_html }}} </ p >
6
6
</div >
7
- </div >
7
+ </div >
8
8
<div class =" container flex flex-column flex-row-l justify-between-l" >
9
9
<div class =" mw8-l" >
10
+ <p >
10
11
<b >See also:</b >
11
12
{{ #each other_blogs }}
12
13
<a href =" {{ url }} " >{{ name }} </a >
13
14
{{ /each }}
15
+ </p >
14
16
</div >
15
17
</div >
16
18
</header >
22
24
{{ #each blog.posts }}
23
25
{{ #if show_year }} <tr >
24
26
<td class =" bn" ></td >
25
- <td class =" bn" ><h3 class =" f0-l f1-m f2-s mt4 mb0" >{{ year }} </h3 ></td >
27
+ <td class =" bn" ><h3 class =" f0-l f1-m f2-s mt4 mb0" >Posts in {{ year }} </h3 ></td >
26
28
</tr >{{ /if }}
27
29
<tr >
28
30
<td class =" tr o-60 pr4 pr5-l bn" >{{ month_name month }} {{ day }} </td >
You can’t perform that action at this time.
0 commit comments