Skip to content

Commit 4dd115e

Browse files
committed
fix displaying author(s)
1 parent 2b3aa26 commit 4dd115e

6 files changed

+24
-19
lines changed

_layouts/post.html

+6-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
layout: singlePage
33
---
44
<div class="container">
5-
<p>{{ page.date | date_to_string }} -
6-
{% if page.authors.size == 1 %}
7-
<a href="{{ page.authorUrl }}">{{ page.author }}</a>
8-
{% else %}
9-
Authors:
10-
{% for author in page.authors %}
11-
<a href="{{ author.authorUrl }}">{{ author.name }}</a>{% unless forloop.last %}, {% endunless %}
5+
<p>{{ page.date | date_to_string }} -
6+
{% assign i = 0 %}
7+
{% for a in page.author %}
8+
<a href="{{ page.authorUrl[i] }}">{{ page.author[i] }}</a>
9+
{% assign i = i | plus:1 %}
1210
{% endfor %}
13-
{% endif %}
1411
</p>
1512

1613
{{ content }}
17-
</div>
14+
</div>

_posts/2022-11-01-author-a-feature.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
layout: post
33
title: "Authoring a Dev Container Feature"
4-
author: "@joshspicer"
5-
authorUrl: https://github.com/joshspicer
4+
author:
5+
- "@joshspicer"
6+
authorUrl:
7+
- https://github.com/joshspicer
68
---
79

810
Development container ["Features"](/features) are self-contained, shareable units of installation code and development container configuration. We [define a pattern](/implementors/features-distribution) for authoring and self-publishing Features.

_posts/2022-12-16-dockerfile.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
layout: post
33
title: "Using Images, Dockerfiles, and Docker Compose"
4-
author: "@chuxel"
5-
authorUrl: https://github.com/chuxel
4+
author:
5+
- "@chuxel"
6+
authorUrl:
7+
- https://github.com/chuxel
68
---
79

810
When creating a development container, you have a variety of different ways to customize your environment like ["Features"](/features) or [lifecycle scripts](/implementors/json_reference/#lifecycle-scripts). However, if you are familiar with containers, you may want to use a [Dockerfile](/guide/dockerfile#dockerfile) or [Docker Compose / Compose](/guide/dockerfile#docker-compose) to customize your environment. This article will walk through how to use these formats with the Dev Container spec.

_posts/2023-02-15-gitlab-ci.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
layout: post
33
title: "Working with GitLab CI"
4-
author: "@raginjason"
5-
authorUrl: https://github.com/raginjason
4+
author:
5+
- "@raginjason"
6+
authorUrl:
7+
- https://github.com/raginjason
68
---
79

810
For simple use cases you can use your development container (dev container) for CI without much issue. Once you begin using more advanced dev container functionality such as [Features](/features), you will need dev container tooling in your CI pipeline. While GitHub CI has the [devcontainers-ci GitHub Action](https://github.com/marketplace/actions/devcontainers-ci), there is no such analog in GitLab CI. To achieve the goal of using your dev container in GitLab CI, the container must be pre-built.

_posts/2023-06-14-feature-authoring-best-practices.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
layout: post
33
title: "Best Practices: Authoring a Dev Container Feature"
4-
author: "@joshspicer"
5-
authorUrl: https://github.com/joshspicer
4+
author:
5+
- "@joshspicer"
6+
authorUrl:
7+
- https://github.com/joshspicer
68
---
79

810
Last November I wrote about the basics around [authoring a Dev Container Feature](/guide/author-a-feature). Since then, [hundreds](https://containers.dev/features) of Features have been written by the community. The flexibility of Features has enabled a wide variety of use cases, from installing a single tool to setting up specific aspects of a project's development environment that can be shared across repositories. To that effect, many different patterns for Feature authorship have emerged, and the core team has learned a lot about what works well and what doesn't.

_posts/2023-08-22-prebuild.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
layout: post
33
title: "Speed Up Your Workflow with Prebuilds"
4-
authors:
4+
author:
55
- "@bamurtaugh"
66
- "@craiglpeters"
7-
authorUrls:
7+
authorUrl:
88
- "https://github.com/bamurtaugh"
99
- "https://github.com/craiglpeters"
1010

0 commit comments

Comments
 (0)