Skip to content

Commit bc3ad96

Browse files
authored
Add a Foundation blog category (#404)
* added foundation blog link on blog index, and the foundation category in 8 recent posts * added posts on the foundation page * changed to show only 8 most recent posts on foundtion page and added a post to the foundation category * changed the prospect button size to medium and put the posts list inside the our work section * included the posts list in the our work section * changed tagged post * corrected button text and put it in the bottom of the members section * corrected button text and put it in the bottom of the members section * added link to the download button * corrected the button link * uncomment the jekyll-redirect-from from the config file * centralized the button * aligned the edges of the posts short list
1 parent be7672c commit bc3ad96

13 files changed

+67
-11
lines changed

_pages/foundation.html

+23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: The Rails Foundation
33
description:
4+
category: foundation
45
permalink: /foundation
56
redirect_from:
67
- /foundation/
@@ -30,6 +31,22 @@ <h3>Our Work.</h3>
3031
<p>The foundation will commission freelancers and firms to work on better written documentation, more compelling screencasts, exciting events, and much more. We've only just gotten started, so more detailed plans are still to follow.</p>
3132

3233
<p>We will also be administering <a href="/trademarks">the Rails trademarks</a> through an exclusive license from the trademark owner.</p>
34+
<p>Here are some of our recent announcements:</p>
35+
36+
<ul style="padding-left: 0;">
37+
{% assign sorted_posts = site.categories[page.category] | sort: 'date' | reverse %}
38+
{% assign limited_posts = sorted_posts | slice: 0, 8 %}
39+
{% for post in limited_posts %}
40+
<li style="display: flex; gap: 2rem; margin-top: 1rem;">
41+
<div style="white-space: nowrap; flex-shrink: 0; width: 6rem;">
42+
{{ post.date | date: '%b %-d, %Y' }}
43+
</div>
44+
<div>
45+
<a href="{{ post.url }}">{{ post.title | strip_html }}</a>
46+
</div>
47+
</li>
48+
{% endfor %}
49+
</ul>
3350

3451
<hr class="divider" />
3552

@@ -130,6 +147,12 @@ <h3>Our Members.</h3>
130147
</div>
131148

132149
<p>The foundation is always open to new Contributing members. Please apply for membership by writing to <a href="mailto:[email protected]">[email protected]</a> for more details. If your company has been benefiting from Rails over the years, but not sure how it might give back to the ecosystem, now there's a clear and obvious choice.</p>
150+
151+
<div class="container" style="display: flex; justify-content: center; padding: 20px">
152+
<a href="https://public.3.basecamp.com/p/7ymKZrwbdPoZhwCzhH2SZkLH" class="common-button common-button--size-medium common-button--color-red" style="color: #FFF"><span>Download the membership deck</span></a>
153+
</div>
154+
155+
133156
<hr class="divider" />
134157

135158
<h3>Our Board.</h3>

_posts/2024-08-02-nominations-open-for-2024-luminaries.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Nominations open for the 2024 Rails Luminary Awards"
4-
categories: news
4+
categories: news, foundation
55
author: Amanda Perino
66
published: true
77
date: 2024-08-02

_posts/2024-08-02-this-week-in-rails.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ rectangle.assign_attributes(height: 10) # => Logs "Tried to assign to unknown at
9797
```
9898

9999
[Add _cvv_ and _cvc_ as default parameters to filter out in new apps](https://github.com/rails/rails/pull/52413)
100-
In general you should not be posting credit card details to your server, but if you make a mistake in your form and *do* post a user's credit card number, those details will get logged by default, even if your server doesn't use them.
101-
This pull request adds `cvv` and `cvc` to the defaults for [`ActiveSupport::ParameterFilter`](https://api.rubyonrails.org/v7.1.3.4/classes/ActiveSupport/ParameterFilter.html) for new apps. This means that params with those names will not get logged by default. This just changes the template for new apps; there's no changes made to existing apps.
100+
In general you should not be posting credit card details to your server, but if you make a mistake in your form and *do* post a user's credit card number, those details will get logged by default, even if your server doesn't use them.
101+
This pull request adds `cvv` and `cvc` to the defaults for [`ActiveSupport::ParameterFilter`](https://api.rubyonrails.org/v7.1.3.4/classes/ActiveSupport/ParameterFilter.html) for new apps. This means that params with those names will not get logged by default. This just changes the template for new apps; there's no changes made to existing apps.
102102

103103

104104
[Support Active Record batching using custom columns](https://github.com/rails/rails/pull/52384)

_posts/2024-08-07-matz-and-dhh-fireside-chat.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Special Rails World session: Matz & DHH Fireside Chat"
4-
categories: news
4+
categories: news, foundation
55
author: Rails Foundation
66
published: true
77
date: 2024-08-07

_posts/2024-08-27-appsignal-returns-as-platinum-rails-world-sponsor.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "AppSignal returns as a Platinum Sponsor at this year’s Rails World"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-08-27

_posts/2024-08-30-shopify-as-rails-world-toronto-city-host.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Shopify is the official Toronto City Host for Rails World 2024"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-08-30

_posts/2024-09-04-github-joins-rails-world-as-platinum-sponsor.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "GitHub joins Rails World 2024 as Platinum Sponsor and Track 1 Host"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-09-05

_posts/2024-09-27-2024-rails-luminary-awards-matz-and-akira.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Announcing the 2024 Rails Luminary Winners: Akira Matsuda & Yukihiro Matsumoto"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-09-27

_posts/2024-11-12-rails-world-videos-localized-and-reedited.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Rails World 2024 videos re-edited and localized in 3 languages"
4-
categories: news
4+
categories: news, foundation
55
author: Amanda Perino
66
published: true
77
date: 2024-11-12

_posts/2024-12-02-rails-foundation-welcomes-1password-as-core-member.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "The Rails Foundation welcomes 1Password as Core member"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-12-02

_posts/2025-11-27-rails-world-2025-save-the-date.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: "Rails World 2025: Save the date - September 4 & 5, Amsterdam"
4-
categories: news
4+
categories: news, foundation
55
author: The Rails Foundation
66
published: true
77
date: 2024-11-27

blog/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<li><a href="/blog"><span>Everything</span></a></li>
1313
<li><a href="/category/releases"><span>Releases</span></a></li>
1414
<li><a href="/category/news"><span>News</span></a></li>
15+
<li><a href="/category/foundation"><span>Foundation</span></a></li>
1516
</ul>
1617
</div>
1718
</div>

category/foundation.html

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Foundation
3+
description:
4+
category: foundation
5+
permalink: /category/foundation
6+
redirect_from:
7+
- /category/foundation/
8+
---
9+
10+
<div class="heading common-padding--bottom-small common-padding--top-small">
11+
<div class="container">
12+
<div class="heading__body">
13+
<div class="heading__headline common-headline">
14+
<h1>{{ page.title }}</h1>
15+
</div>
16+
</div>
17+
</div>
18+
</div>
19+
20+
<div class="blog common-padding--bottom">
21+
<div class="container">
22+
<div class="blog__posts">
23+
24+
{% for post in site.categories[page.category] %}
25+
26+
{% include post.html %}
27+
28+
{% endfor %}
29+
30+
</div>
31+
</div>
32+
</div>

0 commit comments

Comments
 (0)