Skip to content

Commit 197d1f9

Browse files
committed
Merge #1040: Security advisory followups
ca9e4ee Update relevant posts to advisory type (fanquake) 8c61826 posts/feeds: show posts & advisories (fanquake) Pull request description: Followups to #1033. * Ensure that both posts and advisories will be listed on the home/blog/other feeds. * Rename some straggling instances of of disclosure to (security)-advisory. * Add the missing menu item for translated pages (pointing to the en page for now). * cc azuchi, you might be interested in following up with a translation for the japanese page? ACKs for top commit: dergoegge: ACK ca9e4ee darosior: utACK ca9e4ee achow101: ACK ca9e4ee Tree-SHA512: 5917b304426672293a4b4428cc509ca80a0ae5096fd875c0b56cafbe5f0482750857a9826d2659aed3c53a92290f515b2172d1424821c0a863df5fd12ee39521
2 parents 6d1d883 + ca9e4ee commit 197d1f9

File tree

10 files changed

+35
-13
lines changed

10 files changed

+35
-13
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>

_posts/en/posts/2018-09-20-notice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: CVE-2018-17144 Full Disclosure
33
name: cve-2018-17144-full-disclosure
44
id: en-cve-2018-17144-full-disclosure
55
lang: en
6-
type: posts
6+
type: advisory
77
layout: post
88

99
## If this is a new post, reset this counter to 1.

_posts/en/posts/2019-11-08-CVE-2017-18350.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: CVE-2017-18350 Disclosure
33
name: cve-2017-18350-disclosure
44
id: en-2017-18350-disclosure
55
lang: en
6-
type: posts
6+
type: advisory
77
layout: post
88

99
## If this is a new post, reset this counter to 1.

_posts/ja/posts/2019-11-08-CVE-2017-18350.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: cve-2017-18350-disclosure
44
id: ja-2017-18350-disclosure
55
lang: ja
66
permalink: /ja/2019/11/08/CVE-2017-18350/
7-
type: posts
7+
type: advisory
88
layout: post
99

1010
## If this is a new post, reset this counter to 1.

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)