Skip to content

Commit 416ef7c

Browse files
committed
Remove dedicated blog page, put back on main
1 parent 59060c3 commit 416ef7c

File tree

4 files changed

+25
-36
lines changed

4 files changed

+25
-36
lines changed

Diff for: _includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<div class="trigger">
2525
<a class="page-link" href="/docs.html">📚 Learn</a>
26-
<a class="page-link" href="/blog.html">📖 Blog</a>
26+
<a class="page-link" href="/">📖 Blog</a>
2727
<a class="page-link" href="https://github.com/rustwasm/team/blob/master/README.md#get-involved">👯 Get Involved</a>
2828
{%- for path in page_paths -%}
2929
{%- assign my_page = site.pages | where: "path", path | first -%}

Diff for: _layouts/blog.html

-28
This file was deleted.

Diff for: _layouts/home.html

+24
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,28 @@ <h2>Get Involved</h2>
2424

2525
<div class="wrapper">
2626
{{ content }}
27+
28+
{%- if site.posts.size > 0 -%}
29+
<section>
30+
<h2 class="post-list-heading">{{ page.list_title | default: "Blog Posts" }}</h2>
31+
<ul class="post-list">
32+
{%- for post in site.posts -%}
33+
<li>
34+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
35+
<span class="post-meta">{{ post.date | date: date_format }}</span>
36+
<h3>
37+
<a class="post-link" href="{{ post.url | relative_url }}">
38+
{{ post.title | escape }}
39+
</a>
40+
</h3>
41+
{%- if site.show_excerpts -%}
42+
{{ post.excerpt }}
43+
{%- endif -%}
44+
</li>
45+
{%- endfor -%}
46+
</ul>
47+
48+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
49+
</section>
50+
{%- endif -%}
2751
</div>

Diff for: blog.md

-7
This file was deleted.

0 commit comments

Comments
 (0)