File tree Expand file tree Collapse file tree 5 files changed +5
-2
lines changed Expand file tree Collapse file tree 5 files changed +5
-2
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
+ link-text : the main Rust blog
3
4
description : Empowering everyone to build reliable and efficient software.
4
5
index-html : This is the <b>main Rust blog</b>. We use this blog to
5
6
announce big developments in the world of Rust.
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
+ link-text : the "Inside Rust" blog
3
4
description : Want to follow along with Rust development? Curious how you might get involved? Take a look!
4
5
index-html : This is the <b>"Inside Rust"</b> blog. This blog is aimed at those who wish
5
6
to follow along with Rust development. The various
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ pub(crate) struct Manifest {
15
15
pub ( crate ) maintained_by : String ,
16
16
pub ( crate ) index_html : String ,
17
17
pub ( crate ) requires_team : bool ,
18
+ pub ( crate ) link_text : String ,
18
19
}
19
20
20
21
#[ derive( Serialize ) ]
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ impl Generator {
133
133
fn render_index ( & self , blog : & Blog ) -> Result < ( ) , Box < dyn Error > > {
134
134
let other_blogs: Vec < _ > = self . blogs . iter ( ) . filter ( |b| b. index_title ( ) != blog. index_title ( ) )
135
135
. map ( |other_blog| json ! ( {
136
- "name " : other_blog. title ( ) ,
136
+ "link_text " : other_blog. link_text ( ) ,
137
137
"url" : PathBuf :: from( "/" ) . join( other_blog. prefix( ) ) . join( "index.html" ) ,
138
138
} ) )
139
139
. collect ( ) ;
Original file line number Diff line number Diff line change 10
10
<p >
11
11
<b >See also:</b >
12
12
{{ #each other_blogs }}
13
- <a href =" {{ url }} " >the {{ name }} </a >
13
+ <a href =" {{ url }} " >{{ link_text }} </a >
14
14
{{ /each }}
15
15
</p >
16
16
</div >
You can’t perform that action at this time.
0 commit comments