Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions _layouts/new-layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
layout: new-layouts/base
---

<section id="post" class="section">
<div class="swoop swoop-1"></div>

<div class="content">
<h1>{{ page.title }}</h1>

{% include authors.html authors=page.author compact=true %}

<time pubdate datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time>

{% if page.image %}
<img class="featured" src="/assets/images/{{ page.image | split: '.' | first }}/{{ page.image }}"
alt="{{ page.title }} featured image" />
{% endif %}

<div class="details">
{{ content }}

{% if page.author %}
<hr />
<h2>Authors</h2>
{% include authors.html authors=page.author %}
{% endif %}

<hr />

<h2>Continue Reading</h2>

{% if page.previous or page.next %}
<nav class="section card-grid">
<div class="content">
<ul class="tertiary-cards">
{% if page.previous %}
<li>
<div>
<h3>{{ page.previous.title }}</h3>
<time pubdate datetime="{{ page.date | date_to_xmlschema }}">{{ page.previous.date | date: "%B %-d, %Y" }}</time>
<p class="nav-excerpt">
{{ page.previous.excerpt | strip_html | truncate: 80, '..' }}
</p>
<a href="{{ page.previous.url }}" rel="prev">
More
</a>
</div>
</li>
{% endif %}
{% if page.next %}
<li>
<div>
<h3>{{ page.next.title }}</h3>
<time pubdate datetime="{{ page.date | date_to_xmlschema }}">{{ page.next.date | date: "%B %-d, %Y" }}</time>
<p class="nav-excerpt">
{{ page.next.excerpt | strip_html | truncate: 80, '..' }}
</p>
<a href="{{ page.next.url }}" rel="next">
More
</a>
</div>
</li>
{% endif %}
</ul>
</div>
</nav>
{% endif %}
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion _plugins/convert-header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def convert_header(el, indent)
el_attribute['class'] = "header-with-anchor"
@toc << [el.options[:level], el_attribute['id'], el.children] if el_attribute['id'] && in_toc?(el)
format_as_block_html("h#{level}", el_attribute, "#{inner(el, indent)} <a title=\"Permalink for #{inner(el, indent)}\ section\" href=\"##{el_attribute['id']}\">
<?xml version=\"1.0\" encoding=\"utf-8\"?> <svg width=\"24px\" height=\"24px\" viewBox=\"0 0 14 14\" role=\"img\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 11.58824,9.823529 q 0,-0.294117 -0.20589,-0.499999 L 9.85294,7.794118 q -0.20588,-0.205883 -0.5,-0.205883 -0.30882,0 -0.52941,0.235295 0.0221,0.02206 0.13971,0.136029 0.11764,0.113971 0.15808,0.158088 0.0404,0.04412 0.1103,0.139706 0.0698,0.09559 0.0956,0.1875 0.0257,0.09191 0.0257,0.202206 0,0.294117 -0.20588,0.5 -0.20588,0.205882 -0.5,0.205882 -0.1103,0 -0.20221,-0.02573 Q 8.35293,9.301471 8.25733,9.231621 8.16173,9.161771 8.11763,9.121327 8.07353,9.080887 7.95954,8.963238 7.84557,8.845591 7.82351,8.823533 7.58086,9.051474 7.58086,9.360297 q 0,0.294118 0.20588,0.5 l 1.51471,1.522059 q 0.19853,0.19853 0.5,0.19853 0.29412,0 0.5,-0.191177 l 1.08088,-1.073529 q 0.20589,-0.205883 0.20589,-0.492648 z M 6.41912,4.639706 q 0,-0.294118 -0.20588,-0.5 L 4.69853,2.617647 q -0.20588,-0.205882 -0.5,-0.205882 -0.28677,0 -0.5,0.198529 L 2.61765,3.683823 q -0.20589,0.205883 -0.20589,0.492648 0,0.294117 0.20589,0.499999 l 1.52941,1.529412 q 0.19853,0.19853 0.5,0.19853 0.30882,0 0.52941,-0.227942 Q 5.15437,6.15441 5.03676,6.040441 4.91912,5.92647 4.87868,5.882353 4.83828,5.838233 4.76838,5.742647 q -0.0698,-0.09559 -0.0956,-0.1875 -0.0257,-0.09191 -0.0257,-0.202206 0,-0.294117 0.20588,-0.5 0.20588,-0.205882 0.5,-0.205882 0.1103,0 0.20221,0.02573 0.0919,0.02573 0.1875,0.09559 0.0956,0.06985 0.1397,0.110294 0.0441,0.04044 0.15809,0.158089 Q 6.15443,5.154409 6.17649,5.176467 6.41914,4.948526 6.41914,4.639703 z M 13,9.823529 q 0,0.882353 -0.625,1.492647 l -1.08088,1.07353 Q 10.68382,13 9.80147,13 q -0.88971,0 -1.5,-0.625 L 6.78676,10.852941 Q 6.17647,10.242647 6.17647,9.360294 q 0,-0.904412 0.64706,-1.536764 L 6.17647,7.176471 Q 5.54412,7.82353 4.64706,7.82353 q -0.88235,0 -1.5,-0.617648 L 1.617647,5.676471 Q 1,5.058824 1,4.176471 1,3.294118 1.625,2.683824 L 2.70588,1.610294 Q 3.31618,1 4.19853,1 q 0.88971,0 1.5,0.625 l 1.51471,1.522059 q 0.61029,0.610294 0.61029,1.492647 0,0.904412 -0.64706,1.536764 L 7.82353,6.823529 Q 8.45588,6.17647 9.35294,6.17647 q 0.88235,0 1.5,0.617648 l 1.52941,1.529411 Q 13,8.941176 13,9.823529 z\"/></svg>
<?xml version=\"1.0\" encoding=\"utf-8\"?> <svg width=\"18px\" height=\"18px\" viewBox=\"0 0 14 14\" role=\"img\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 11.58824,9.823529 q 0,-0.294117 -0.20589,-0.499999 L 9.85294,7.794118 q -0.20588,-0.205883 -0.5,-0.205883 -0.30882,0 -0.52941,0.235295 0.0221,0.02206 0.13971,0.136029 0.11764,0.113971 0.15808,0.158088 0.0404,0.04412 0.1103,0.139706 0.0698,0.09559 0.0956,0.1875 0.0257,0.09191 0.0257,0.202206 0,0.294117 -0.20588,0.5 -0.20588,0.205882 -0.5,0.205882 -0.1103,0 -0.20221,-0.02573 Q 8.35293,9.301471 8.25733,9.231621 8.16173,9.161771 8.11763,9.121327 8.07353,9.080887 7.95954,8.963238 7.84557,8.845591 7.82351,8.823533 7.58086,9.051474 7.58086,9.360297 q 0,0.294118 0.20588,0.5 l 1.51471,1.522059 q 0.19853,0.19853 0.5,0.19853 0.29412,0 0.5,-0.191177 l 1.08088,-1.073529 q 0.20589,-0.205883 0.20589,-0.492648 z M 6.41912,4.639706 q 0,-0.294118 -0.20588,-0.5 L 4.69853,2.617647 q -0.20588,-0.205882 -0.5,-0.205882 -0.28677,0 -0.5,0.198529 L 2.61765,3.683823 q -0.20589,0.205883 -0.20589,0.492648 0,0.294117 0.20589,0.499999 l 1.52941,1.529412 q 0.19853,0.19853 0.5,0.19853 0.30882,0 0.52941,-0.227942 Q 5.15437,6.15441 5.03676,6.040441 4.91912,5.92647 4.87868,5.882353 4.83828,5.838233 4.76838,5.742647 q -0.0698,-0.09559 -0.0956,-0.1875 -0.0257,-0.09191 -0.0257,-0.202206 0,-0.294117 0.20588,-0.5 0.20588,-0.205882 0.5,-0.205882 0.1103,0 0.20221,0.02573 0.0919,0.02573 0.1875,0.09559 0.0956,0.06985 0.1397,0.110294 0.0441,0.04044 0.15809,0.158089 Q 6.15443,5.154409 6.17649,5.176467 6.41914,4.948526 6.41914,4.639703 z M 13,9.823529 q 0,0.882353 -0.625,1.492647 l -1.08088,1.07353 Q 10.68382,13 9.80147,13 q -0.88971,0 -1.5,-0.625 L 6.78676,10.852941 Q 6.17647,10.242647 6.17647,9.360294 q 0,-0.904412 0.64706,-1.536764 L 6.17647,7.176471 Q 5.54412,7.82353 4.64706,7.82353 q -0.88235,0 -1.5,-0.617648 L 1.617647,5.676471 Q 1,5.058824 1,4.176471 1,3.294118 1.625,2.683824 L 2.70588,1.610294 Q 3.31618,1 4.19853,1 q 0.88971,0 1.5,0.625 l 1.51471,1.522059 q 0.61029,0.610294 0.61029,1.492647 0,0.904412 -0.64706,1.536764 L 7.82353,6.823529 Q 8.45588,6.17647 9.35294,6.17647 q 0.88235,0 1.5,0.617648 l 1.52941,1.529411 Q 13,8.941176 13,9.823529 z\"/></svg>
</a>", indent)
end
end
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-12-03-swift-3-api-design.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2015-12-03 12:01:01
title: Swift 3 API Design Guidelines
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-12-03-swift-linux-port.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2015-12-03 11:01:01
title: The Swift Linux Port
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-12-03-welcome.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2015-12-03 10:01:01
published: true
title: The Swift.org Blog
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-01-29-swift-api-transformation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-1-29
title: "It's Coming: the Great Swift API Transformation"
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-02-01-swift-CI.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-02-01 18:00:00
title: Continuous Integration now Available
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-02-08-swift-benchmark-suite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-02-08 18:00:00
title: Swift Benchmark Suite now Available
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-02-29-swift-commit-access.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-02-29 8:00:00
title: Expanding Commit Access
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-03-21-swift-2.2-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-3-21 12:00:00
title: Swift 2.2 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-03-30-swift-2.2-new-features.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-3-30 8:00:00
title: New Features in Swift 2.2
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-05-06-swift-3.0-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-5-06 13:00:00
title: Swift 3.0 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-06-13-swift-2.3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-6-13 2:00:00
title: Swift 2.3
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-06-13-swift-3.0-preview-1-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-6-13 12:00:00
title: Swift 3.0 Preview 1 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-07-07-swift-xcode-playground-support.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-7-07 13:00:00
title: Xcode Playground Support
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-09-13-swift-3.0-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-9-13 12:00:00
title: Swift 3.0 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-1-05-swift-2.2-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-1-05 18:00:00
title: Swift 2.2 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-10-21-whole-module-optimizations.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-10-21 10:00:00
title: Whole-Module Optimization in Swift 3
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-10-25-server-api-workgroup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-10-25 9:00:00
title: Server APIs Work Group
Expand Down
2 changes: 1 addition & 1 deletion _posts/2016-12-9-swift-3.1-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2016-12-9 10:00:00
title: Swift 3.1 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-18-swift-evolution-status-page.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-01-18 12:01:01
title: Swift Evolution Status Page Now Available
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-01-26-bridging-pch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-1-26 10:00:00
title: Faster Mix-and-Match Builds with Precompiled Bridging Headers
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-04-24-swift-source-compatibility-test-suite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-04-24 13:01:01
title: Swift Source Compatibility Test Suite Now Available
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-06-21 09:45:00
title: Swift Package Manager Manifest API Redesign
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-08-22-swift-local-refactoring.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-08-22 09:45:00
title: Swift Local Refactoring
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-09-19-swift-4.0-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-09-19 12:00:00
title: Swift 4.0 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-10-04-dictionary-and-set-improvements.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-10-04 12:00:00
title: Dictionary and Set Improvements in Swift 4.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-10-05 12:00:00
title: Xcode 9.1 Improves Display of Fatal Errors
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-10-17-swift-4.1-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-10-17 10:00:00
title: Swift 4.1 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-2-16-swift-4.0-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-2-16 10:00:00
title: Swift 4 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2017-3-27-swift-3.1-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2017-3-27 10:00:00
title: Swift 3.1 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-08-conditional-conformance.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-01-08 12:00:00
title: Conditional Conformance in the Standard Library
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-19-forums.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-01-19 18:00:00
title: Swift Forums Now Open!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-02-08-osize.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-2-08 10:00:00
title: Code Size Optimization Mode in Swift 4.1
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-02-28-4.2-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-02-28 10:00:00
title: Swift 4.2 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-03-29-swift-4.1-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-03-29 10:00:00
title: Swift 4.1 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-04-26-iuo.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-04-26 9:00:00
title: Reimplementation of Implicitly Unwrapped Optionals
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-05-03-swift-community-hosted-CI.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-05-03 9:00:00
title: Swift Community-Hosted Continuous Integration
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-05-10-related-projects.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2018-05-10 10:00:00
title: Introducing Related Projects to Swift Forums
author: tkremenek
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-09-17-swift-4.2-released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-09-17 10:00:00
title: Swift 4.2 Released!
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-09-25-5.0-release-process.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
published: true
date: 2018-09-25 10:00:00
title: Swift 5.0 Release Process
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-09-26-how-mirror-works.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2018-09-26 10:00:00
title: How Mirror Works
author: mikeash
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-10-08-swiftpm-repl-support.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2018-10-08 10:00:00
title: REPL Support for Swift Packages
author: aciid
Expand Down
2 changes: 1 addition & 1 deletion _posts/2019-02-05-swift-5-exclusivity.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2019-02-05 10:00:00
title: Swift 5 Exclusivity Enforcement
author: atrick
Expand Down
2 changes: 1 addition & 1 deletion _posts/2019-02-06-sourcekitd-stress-tester.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2019-02-06 12:00:00
title: Introducing the sourcekitd Stress Tester
author: nathawes
Expand Down
2 changes: 1 addition & 1 deletion _posts/2019-02-07-abi-stability-and-more.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2019-02-07 10:00:00
title: ABI Stability and More
author: jrose
Expand Down
2 changes: 1 addition & 1 deletion _posts/2019-02-11-abi-stability-and-apple.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: new-layouts/post
date: 2019-02-11 10:00:00
title: Evolving Swift On Apple Platforms After ABI Stability
author: jckarter
Expand Down
Loading