diff --git a/_data/new-data/blog/page-data.yml b/_data/new-data/blog/page-data.yml index 0891aa486..8b9960ee5 100644 --- a/_data/new-data/blog/page-data.yml +++ b/_data/new-data/blog/page-data.yml @@ -1,4 +1,4 @@ -headline: Swift latest news +headline: Latest Swift News read-more: Read more category_titles: - 'Language' diff --git a/_layouts/new-layouts/post.html b/_layouts/new-layouts/post.html index d7c93ad22..8512725e5 100644 --- a/_layouts/new-layouts/post.html +++ b/_layouts/new-layouts/post.html @@ -31,8 +31,16 @@

{{ page.title }}

{{ content }} {% if page.author %}
-

Authors

- {% include authors.html authors=page.author %} {% endif %} + {% assign authors = page.author | array %} + + {% if authors.size > 1 %} +

Authors

+ {% else %} +

Author

+ {% endif %} + + {% include authors.html authors=authors %} + {% endif %}
diff --git a/_posts/2024-09-17-announcing-swift-6.md b/_posts/2024-09-17-announcing-swift-6.md index 83d0a114a..ef86261b0 100644 --- a/_posts/2024-09-17-announcing-swift-6.md +++ b/_posts/2024-09-17-announcing-swift-6.md @@ -3,6 +3,12 @@ layout: new-layouts/post published: true date: 2024-09-17 10:00:00 title: Announcing Swift 6 +featured-image: + url: '/assets/images/6.2-blog/blog-posts-hero@2x.png' + alt: 'Featured blog image with the Swift Logo over a white to orange gradient background.' +featured-image-dark: + url: '/assets/images/6.2-blog/blog-posts-hero-dark@2x.png' + alt: 'Featured blog image with the Swift Logo over a white to black gradient background.' author: [hborla] category: "Language" --- diff --git a/_posts/2025-06-04-redesigned-swift-org-is-now-live.md b/_posts/2025-06-04-redesigned-swift-org-is-now-live.md index 1cdb1688c..08ba0dd5f 100644 --- a/_posts/2025-06-04-redesigned-swift-org-is-now-live.md +++ b/_posts/2025-06-04-redesigned-swift-org-is-now-live.md @@ -3,6 +3,12 @@ layout: new-layouts/post published: true date: 2025-06-04 10:00:00 title: "Redesigned Swift.org is now live" +featured-image: + url: '/assets/images/swift-redesign-blog/swift-redesign-blog.png' + alt: 'Screenshot of the redesigned website.' +featured-image-dark: + url: '/assets/images/swift-redesign-blog/blog-posts-hero-dark@2x.png' + alt: 'Screenshot of the redesigned website.' image: "swift-redesign-blog.png" author: [shahmishal] category: 'Community' diff --git a/assets/stylesheets/new-stylesheets/pages/_post.scss b/assets/stylesheets/new-stylesheets/pages/_post.scss index b5d0cea3e..7d88b9409 100644 --- a/assets/stylesheets/new-stylesheets/pages/_post.scss +++ b/assets/stylesheets/new-stylesheets/pages/_post.scss @@ -62,7 +62,6 @@ } .details { - width: 90%; margin: 1.2em auto; color: var(--color-syntax-plain-text);