Skip to content

seccond attempt at changelogs #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "jekyll", "~> 3.8"

group :jekyll_plugins do

gem "jekyll-redirect-from"
end
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-redirect-from (0.15.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.2.1)
Expand Down Expand Up @@ -56,6 +58,7 @@ PLATFORMS

DEPENDENCIES
jekyll (~> 3.8)
jekyll-redirect-from

BUNDLED WITH
1.17.2
2 changes: 2 additions & 0 deletions _config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ github_username: rust-analyzer
exclude:
- wasm-demo/
- vendor
plugins:
- jekyll-redirect-from
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
{% if page.url != "/" %}
<header>
<a class="nav-link site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
<a class="nav-link" href="/blog">Blog</a>
<a class="nav-link" href="/thisweek">Changelog</a>
<a class="nav-link" href="https://opencollective.com/rust-analyzer/">Sponsor</a>
</header>
{% endif %}
Expand Down
15 changes: 15 additions & 0 deletions blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: default
---
<h2>Posts</h2>

<ul class="post-list">
{% for post in site.categories.blog %}
<li>
<h3>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> <a class="post-link"
href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
</li>
{% endfor %}
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Cost of rust-analyzer"
date: 2019-10-16 11:00:00 +0200
redirect_from: "/2019/10/16/finance.html"
---

In this post, we'll talk about financial side of the rust-analyzer project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Find Usages"
date: 2019-11-13 11:00:00 +0200
redirect_from: "/2019/11/13/find-usages.html"
---

Last month, rust-analyzer gained an exciting new feature: find usages. It was implemented by [@viorina] in [#1892].
Expand Down
1 change: 0 additions & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ footer > p {
.post-list {
margin-left: 0;
list-style: none;
align-self: center;
}

.post-list > li {
Expand Down
33 changes: 29 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,38 @@ <h2>Support</h2>
<h2>Latest News</h2>

<ul class="post-list">
{% for post in site.posts %}
{% assign post = site.categories.thisweek.first %}
<li>
<h3>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> <a class="post-link"
href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
</li>

<li>
<h3>
<a class="post-link" href="/thisweek">All</a>
</h3>
</li>
</ul>
</section>

<section>
<h2>Latest Post</h2>

<ul class="post-list">
{% assign post = site.categories.blog.first %}
<li>
<h3>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
</li>

<li>
<h3>
<a class="post-link" href="/blog">All</a>
</h3>
</li>
{% endfor %}
</ul>
</section>
15 changes: 15 additions & 0 deletions thisweek.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: default
---
<h2>This Week In rust-analyzer</h2>

<ul class="post-list">
{% for post in site.categories.thisweek %}
<li>
<h3>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span> <a class="post-link"
href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
</li>
{% endfor %}
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Changelog #0"
date: 2019-07-24 14:34:00 +0200
redirect_from: "/2019/07/24/changelog-0.html"
---

Hello!
Expand Down