Skip to content

Commit f0b858f

Browse files
committed
Point to /releases from main blog
1 parent ca03de6 commit f0b858f

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

Diff for: content/_index.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ This is the <b>main Rust blog</b>. \
99
<a href="https://www.rust-lang.org/governance/">Rust teams</a> \
1010
use this blog to announce major developments in the world of Rust."""
1111
maintained_by = "the Rust Teams"
12-
see_also_path = "/inside-rust/"
13-
see_also_text = """the "Inside Rust" blog"""
12+
[[extra.see_also]]
13+
path = "/inside-rust/"
14+
text = """the "Inside Rust" blog"""
15+
[[extra.see_also]]
16+
path = "/releases/"
17+
text = "release announcements"
1418
+++

Diff for: content/inside-rust/_index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ to follow along with Rust development. The various \
1111
use this blog to post status updates, calls for help, and other \
1212
similar announcements."""
1313
maintained_by = "the Rust Teams"
14-
see_also_path = "/"
15-
see_also_text = "the main Rust blog"
14+
[[extra.see_also]]
15+
path = "/"
16+
text = "the main Rust blog"
1617
+++

Diff for: content/releases/_index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title = "Rust Release Announcements"
33
template = "releases.html"
44
[extra]
55
index_title = "The Rust Release Announcements"
6-
see_also_path = "/"
7-
see_also_text = "the main Rust blog"
6+
[[extra.see_also]]
7+
path = "/"
8+
text = "the main Rust blog"
89
+++

Diff for: templates/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<div class="mw8-l">
1212
<p>
1313
<b>See also:</b>
14-
<a href="{{ config.base_url | safe }}{{ section.extra.see_also_path | safe }}">{{ section.extra.see_also_text }}</a>
14+
{% for see_also in section.extra.see_also -%}
15+
{% if loop.index0 != 0 %},{% endif %}
16+
<a href="{{ config.base_url | safe }}{{ see_also.path | safe }}">{{ see_also.text }}</a>
17+
{%- endfor -%}
1518
</p>
1619
</div>
1720
</div>

Diff for: templates/releases.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
<div class="mw8-l">
2121
<p>
2222
<b>See also:</b>
23-
<a href="{{ config.base_url | safe }}{{ section.extra.see_also_path | safe }}">{{ section.extra.see_also_text }}</a>
23+
{% for see_also in section.extra.see_also -%}
24+
{% if loop.index0 != 0 %},{% endif %}
25+
<a href="{{ config.base_url | safe }}{{ see_also.path | safe }}">{{ see_also.text }}</a>
26+
{%- endfor -%}
2427
</p>
2528
</div>
2629
</div>

0 commit comments

Comments
 (0)