Skip to content

Commit 8c61826

Browse files
committed
posts/feeds: show posts & advisories
Change disclosure to advisory.
1 parent c4add50 commit 8c61826

File tree

7 files changed

+32
-10
lines changed

7 files changed

+32
-10
lines changed

_data/navigation.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ en:
3131
eol:
3232
title: "Lifecycle"
3333
url: "/en/lifecycle"
34-
disclosures:
34+
security-advisories:
3535
title: "Security Advisories"
36-
url: "/en/security-advisories/"
36+
url: "/en/security-advisories/"
3737
contact:
3838
title: "Contact"
3939
submenu: true
@@ -79,6 +79,9 @@ zh_CN:
7979
eol:
8080
title: "生命周期"
8181
url: "/zh_CN/lifecycle/"
82+
security-advisories:
83+
title: "Security Advisories"
84+
url: "/en/security-advisories/"
8285
contact:
8386
title: "联系"
8487
submenu: true
@@ -118,6 +121,9 @@ zh_TW:
118121
eol:
119122
title: "Lifecycle"
120123
url: "/en/lifecycle/"
124+
security-advisories:
125+
title: "Security Advisories"
126+
url: "/en/security-advisories/"
121127
contact:
122128
title: "Contact"
123129
submenu: true
@@ -160,6 +166,9 @@ ja:
160166
eol:
161167
title: "ライフサイクル"
162168
url: "/ja/lifecycle"
169+
security-advisories:
170+
title: "Security Advisories"
171+
url: "/en/security-advisories/"
163172
contact:
164173
title: "コンタクト"
165174
submenu: true
@@ -205,6 +214,9 @@ es:
205214
eol:
206215
title: "Lifecycle" # XXX
207216
url: "/en/lifecycle" # XXX
217+
security-advisories:
218+
title: "Security Advisories"
219+
url: "/en/security-advisories/"
208220
contact:
209221
title: "Contact" # XXX
210222
submenu: true

_layouts/feed.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<uri>{{ site.url }}{{ post.url }}</uri>
1111
</author>
1212
{% assign posts=site.posts | where:"lang", page.lang | where:"type", 'posts' %}
13-
{% for post in posts limit:20 %}
13+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
14+
{% assign all=advisories | concat: posts | sort: "date" | reverse %}
15+
{% for post in all limit:20 %}
1416
{% if post.author %}
1517
{% assign author = site.data.authors[post.author] %}
1618
{% else %}

_layouts/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ <h3><a href="{{ navigation.blog.url }}">Recent Posts</a></h3>
3636
<!-- h3><a href="{{ navigation.blog.url }}">Recent Posts</a></h3 -->
3737
{% assign english_posts=site.posts | where:"lang", 'en' | where:"type", 'posts' %}
3838
{% assign translated_posts=site.posts | where:"lang", page.lang | where:"type", 'posts' %}
39-
{% for default_post in english_posts limit:5 %}
39+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
40+
{% assign all=advisories | concat: english_posts | sort: "date" | reverse %}
41+
{% for default_post in all limit:5 %}
4042
{% assign post=default_post %}
4143
{% for tpost in translated_posts %}
4244
{% if tpost.name == post.name %}{% assign found=true %}{% assign post=tpost %}{% break %}{% endif %}

_layouts/post-index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
<h1>{{ page.title | xml_escape }}</h1>
3535
{% capture written_year %}'None'{% endcapture %}
3636
{% assign english_posts=site.posts | where:"lang", 'en' | where:"type", 'posts' %}
37+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
38+
{% assign all=advisories | concat: english_posts | sort: "date" | reverse %}
3739
{% assign translated_posts=site.posts | where:"lang", page.lang | where:"type", 'posts' %}
38-
{% for default_post in english_posts %}
40+
{% for default_post in all %}
3941
{% assign post=default_post %}
4042
{% for tpost in translated_posts %}
4143
{% if tpost.name == post.name %}{% assign found=true %}{% assign post=tpost %}{% break %}{% endif %}

_layouts/rss.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<link>{{ site.url }}</link>
77
<atom:link href="{{ site.url }}/{{ page.lang }}/rss.xml" rel="self" type="application/rss+xml" />
88
{% assign posts=site.posts | where:"lang", page.lang | where:"type", 'posts' %}
9-
{% for post in posts %}
9+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
10+
{% assign all=advisories | concat: posts | sort: "date" | reverse %}
11+
{% for post in all %}
1012
<item>
1113
<title>{{ post.title | strip_html }}</title>
1214
<description>{{ post.content | xml_escape | replace: "[[", " (" | replace: "]]", ")"}}</description>

_posts/en/pages/2024-06-26-disclosures.md renamed to _posts/en/pages/2024-06-26-security-advisories.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ differentiate between 4 classes of vulnerabilities:
4040

4141
## Past Security Advisories
4242

43-
{% assign disclosures=site.posts | where:"lang", 'en' | where:"type", 'disclosure' %}
44-
{% for default_disclosure in disclosures %}
45-
{% assign post=default_disclosure %}
43+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
44+
{% for advisory in advisories %}
45+
{% assign post=advisory %}
4646
<article>
4747
<h2><a href="{{ post.url }}" title="{{ post.title | xml_escape }}">{{ post.title }}</a></h2>
4848
<p>{{ post.excerpt | markdownify | strip_html | truncate: 200 }}</p>

en/announcements.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ lang: en
1010
<link>{{ site.url }}</link>
1111
<atom:link href="{{ site.url }}/{{ page.lang }}/announcements.xml" rel="self" type="application/rss+xml" />
1212
{% assign posts=site.posts | where:"lang", page.lang | where:"type", 'posts' | where: "announcement", 1 %}
13-
{% for post in posts limit:5 %}
13+
{% assign advisories=site.posts | where:"lang", 'en' | where:"type", 'advisory' %}
14+
{% assign all=advisories | concat: posts | sort: "date" | reverse %}
15+
{% for post in all limit:5 %}
1416
<item>
1517
<title>{{ post.title | strip_html }}</title>
1618
<description>{{ post.content | xml_escape | replace: "[[", " (" | replace: "]]", ")"}}</description>

0 commit comments

Comments
 (0)