From b9380741f0f144ccaea6b437b66285baf509c1f5 Mon Sep 17 00:00:00 2001 From: Jesse Squires Date: Sat, 29 Apr 2023 22:36:22 -0700 Subject: [PATCH] Create a "post series" component to display all posts in a series --- _includes/post_series_notice.html | 20 +++++++++++++++++++ _posts/2014-06-25-apples-to-apples.md | 4 +++- .../2014-08-06-apples-to-apples-part-two.md | 4 +++- .../2014-08-21-apples-to-apples-part-three.md | 4 +++- _posts/2023-04-10-going-indie.md | 2 +- 5 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 _includes/post_series_notice.html diff --git a/_includes/post_series_notice.html b/_includes/post_series_notice.html new file mode 100644 index 00000000..daea884f --- /dev/null +++ b/_includes/post_series_notice.html @@ -0,0 +1,20 @@ +{% assign tag = include.tag %} +{% assign topic = include.topic %} + +{% assign post_list = site.tags[tag] %} + +
+
In This Series
+

This post is part of a series about {{ topic }}.

+
    + {% for each in post_list reversed %} +
  1. + {% if each.url == page.url %} + {{ each.title }} + {% else %} + {{ each.title }} + {% endif %} +
  2. + {% endfor %} +
+
diff --git a/_posts/2014-06-25-apples-to-apples.md b/_posts/2014-06-25-apples-to-apples.md index b129bf80..b1ab0994 100644 --- a/_posts/2014-06-25-apples-to-apples.md +++ b/_posts/2014-06-25-apples-to-apples.md @@ -1,7 +1,7 @@ --- layout: post categories: [software-dev] -tags: [swift, objective-c, wwdc, xcode] +tags: [swift, objective-c, wwdc, xcode, series-apples-to-apples] date: 2014-06-25T10:00:00-07:00 title: Apples to apples subtitle: A comparison of sorts between Objective-C and Swift @@ -12,6 +12,8 @@ When Craig Federighi arrived at his presentation slide about Objective-C during +{% include post_series_notice.html tag="series-apples-to-apples" topic="benchmarking Swift and comparing it to Objective-C"%} + {% include updated_notice.html message=' This post has been updated for Xcode6-beta4. All trials were re-run as described below using Xcode6-beta4. diff --git a/_posts/2014-08-06-apples-to-apples-part-two.md b/_posts/2014-08-06-apples-to-apples-part-two.md index e449fa6d..b42eb97a 100644 --- a/_posts/2014-08-06-apples-to-apples-part-two.md +++ b/_posts/2014-08-06-apples-to-apples-part-two.md @@ -1,7 +1,7 @@ --- layout: post categories: [software-dev] -tags: [swift, objective-c, wwdc, xcode] +tags: [swift, objective-c, wwdc, xcode, series-apples-to-apples] date: 2014-08-06T10:00:00-07:00 title: Apples to apples, Part II subtitle: An analysis of sorts between Objective-C and Swift @@ -11,6 +11,8 @@ If at first you don't succeed, try, try again. Practice makes perfect. These pro +{% include post_series_notice.html tag="series-apples-to-apples" topic="benchmarking Swift and comparing it to Objective-C"%} + This week, Apple has reminded us of the value of this iterative process and its rewards with the fifth beta release of Xcode 6, iOS 8, OS X Yosemite, and most importantly — *Swift*. This update includes a [number of improvements](http://adcdownload.apple.com//Developer_Tools/xcode_6_beta_5_za4gu6/xcode_6_beta_5_release_notes.pdf), but perhaps the most interesting are those not listed. Swift was rough around the edges during its launch at [WWDC](https://developer.apple.com/wwdc/), but it is **definitely** beginning to live up to its name. If you missed my first post, [*Apples to Apples*]({% post_url 2014-06-25-apples-to-apples %}), you should head over there now to catch up. diff --git a/_posts/2014-08-21-apples-to-apples-part-three.md b/_posts/2014-08-21-apples-to-apples-part-three.md index a0acaa88..0afcb46e 100644 --- a/_posts/2014-08-21-apples-to-apples-part-three.md +++ b/_posts/2014-08-21-apples-to-apples-part-three.md @@ -1,7 +1,7 @@ --- layout: post categories: [software-dev] -tags: [swift, objective-c, wwdc, xcode] +tags: [swift, objective-c, wwdc, xcode, series-apples-to-apples] date: 2014-08-21T10:00:00-07:00 title: Apples to apples, Part III subtitle: A modest proposal: can Swift outperform plain C? @@ -11,6 +11,8 @@ subtitle: A modest proposal: can Swift outperform plain C? +{% include post_series_notice.html tag="series-apples-to-apples" topic="benchmarking Swift and comparing it to Objective-C"%} + In [*Apples to apples, Part II*]({% post_url 2014-08-06-apples-to-apples-part-two %}), we discovered that Swift was finally performing better than Objective-C. As expected, some common [reactions](https://twitter.com/OldManKris/status/497102303833255936) and [responses](https://twitter.com/mpweiher/status/497066155224608768) on Twitter were, *then how does it compare to C?* This is precisely what we are investigating today to welcome this week's arrival of [Xcode 6 beta 6](https://developer.apple.com/xcode/downloads/). ### Setup diff --git a/_posts/2023-04-10-going-indie.md b/_posts/2023-04-10-going-indie.md index 7e849a7f..6453d504 100644 --- a/_posts/2023-04-10-going-indie.md +++ b/_posts/2023-04-10-going-indie.md @@ -1,7 +1,7 @@ --- layout: post categories: [essays] -tags: [going-indie, indie-dev, contracting, freelance, consulting] +tags: [series-going-indie, indie-dev, contracting, freelance, consulting] date: 2023-04-10T09:47:22-07:00 title: Going Independent subtitle: My experience and reflections 3 years later