Skip to content

Commit 40e3718

Browse files
committed
Add a new 'Showcase' section
1 parent 33fa557 commit 40e3718

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

content/showcase/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "Showcase"
3+
sort_by = "date"
4+
render = false
5+
+++
6+
7+
In this section, we present interesting operating system projects written in Rust. Feel free to add your own project by [creating a pull request](https://github.com/rust-osdev/homepage/pulls).

templates/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ <h2>{{ this_month.title }}</h2>
1515
{% endfor %}
1616
</ul>
1717

18+
{% set showcase = get_section(path = "showcase/_index.md") %}
19+
<h2>{{ showcase.title }}</h2>
20+
{{ showcase.content | safe }}
21+
<ul>
22+
{% for page in showcase.pages %}
23+
<li><a href="{{ page.path | safe }}">{{ page.title | safe }}</a></li>
24+
{% endfor %}
25+
</ul>
26+
1827
{% endblock main %}
1928

2029
{% block after_main %}

0 commit comments

Comments
 (0)