Skip to content

Commit 3de9b20

Browse files
committed
don't use the index title for "the Foo blog" links
1 parent 9bdbc26 commit 3de9b20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

posts/blog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title: Rust Blog
1+
title: Rust blog
22
index-title: The Rust Programming Language Blog
33
description: Empowering everyone to build reliable and efficient software.
44
index-html: This is the <b>main Rust blog</b>. We use this blog to

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl Generator {
133133
fn render_index(&self, blog: &Blog) -> Result<(), Box<dyn Error>> {
134134
let other_blogs: Vec<_> = self.blogs.iter().filter(|b| b.index_title() != blog.index_title())
135135
.map(|other_blog| json!({
136-
"name": other_blog.index_title(),
136+
"name": other_blog.title(),
137137
"url": PathBuf::from("/").join(other_blog.prefix()).join("index.html"),
138138
}))
139139
.collect();

templates/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<p>
1111
<b>See also:</b>
1212
{{#each other_blogs}}
13-
<a href="{{url}}">{{name}}</a>
13+
<a href="{{url}}">the {{name}}</a>
1414
{{/each}}
1515
</p>
1616
</div>

0 commit comments

Comments
 (0)