Skip to content

Commit a16b629

Browse files
Apply latest changes (#1155)
1 parent 39705f5 commit a16b629

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

_data/new-data/blog/page-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
headline: Swift latest news
1+
headline: Latest Swift News
22
read-more: Read more
33
category_titles:
44
- 'Language'

_layouts/new-layouts/post.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ <h1>{{ page.title }}</h1>
3131
<div class="details">
3232
{{ content }} {% if page.author %}
3333
<hr />
34-
<h2>Authors</h2>
35-
{% include authors.html authors=page.author %} {% endif %}
34+
{% assign authors = page.author | array %}
35+
36+
{% if authors.size > 1 %}
37+
<h2>Authors</h2>
38+
{% else %}
39+
<h2>Author</h2>
40+
{% endif %}
41+
42+
{% include authors.html authors=authors %}
43+
{% endif %}
3644

3745
<hr />
3846

_posts/2024-09-17-announcing-swift-6.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ layout: new-layouts/post
33
published: true
44
date: 2024-09-17 10:00:00
55
title: Announcing Swift 6
6+
featured-image:
7+
url: '/assets/images/6.2-blog/[email protected]'
8+
alt: 'Featured blog image with the Swift Logo over a white to orange gradient background.'
9+
featured-image-dark:
10+
url: '/assets/images/6.2-blog/[email protected]'
11+
alt: 'Featured blog image with the Swift Logo over a white to black gradient background.'
612
author: [hborla]
713
category: "Language"
814
---

_posts/2025-06-04-redesigned-swift-org-is-now-live.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ layout: new-layouts/post
33
published: true
44
date: 2025-06-04 10:00:00
55
title: "Redesigned Swift.org is now live"
6+
featured-image:
7+
url: '/assets/images/swift-redesign-blog/swift-redesign-blog.png'
8+
alt: 'Screenshot of the redesigned website.'
9+
featured-image-dark:
10+
url: '/assets/images/swift-redesign-blog/[email protected]'
11+
alt: 'Screenshot of the redesigned website.'
612
image: "swift-redesign-blog.png"
713
author: [shahmishal]
814
category: 'Community'

assets/stylesheets/new-stylesheets/pages/_post.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
}
6363

6464
.details {
65-
width: 90%;
6665
margin: 1.2em auto;
6766
color: var(--color-syntax-plain-text);
6867

0 commit comments

Comments
 (0)