Skip to content

Commit

Permalink
Create a "post series" component to display all posts in a series
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Apr 30, 2023
1 parent c5d7797 commit b938074
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
20 changes: 20 additions & 0 deletions _includes/post_series_notice.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% assign tag = include.tag %}
{% assign topic = include.topic %}

{% assign post_list = site.tags[tag] %}

<div class="alert alert-primary pb-0">
<h5><i class="bi bi-bookmark-star-fill"></i> In This Series</h5>
<p class="pb-0 mb-2">This post is part of a series about <span class="fw-semibold">{{ topic }}</span>.</p>
<ol>
{% for each in post_list reversed %}
<li class="fw-bold">
{% if each.url == page.url %}
<span class="fw-bold">{{ each.title }}</span> <i class="bi bi-star-fill"></i>
{% else %}
<a href="{{ each.url }}" class="alert-link fw-normal">{{ each.title }}</a>
{% endif %}
</li>
{% endfor %}
</ol>
</div>
4 changes: 3 additions & 1 deletion _posts/2014-06-25-apples-to-apples.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,6 +12,8 @@ When Craig Federighi arrived at his presentation slide about Objective-C during

<!--excerpt-->

{% 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.

Expand Down
4 changes: 3 additions & 1 deletion _posts/2014-08-06-apples-to-apples-part-two.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,6 +11,8 @@ If at first you don't succeed, try, try again. Practice makes perfect. These pro

<!--excerpt-->

{% 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 &mdash; *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.
Expand Down
4 changes: 3 additions & 1 deletion _posts/2014-08-21-apples-to-apples-part-three.md
Original file line number Diff line number Diff line change
@@ -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&#58; can Swift outperform plain C?
Expand All @@ -11,6 +11,8 @@ subtitle: A modest proposal&#58; can Swift outperform plain C?

<!--excerpt-->

{% 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
Expand Down
2 changes: 1 addition & 1 deletion _posts/2023-04-10-going-indie.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b938074

Please sign in to comment.