Skip to content

Commit

Permalink
Added another step (mmistakes#2294)
Browse files Browse the repository at this point in the history
The step is required to get the portfolio collection to work.
  • Loading branch information
Dan Wilde authored and chukycheese committed Sep 18, 2023
1 parent 36d7063 commit 6db412d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/_docs/13-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ defaults:
share: true
```

Now make a portfolio.md file in the '_pages' folder.

```yaml
---
title: Portfolio
layout: collection
permalink: /portfolio/
collection: portfolio
entries_layout: grid
classes: wide
---
```

And then create portfolio content like [`_portfolio/foo-bar-website.md`](https://github.com/{{ site.repository }}/blob/master/docs/_portfolio/foo-bar-website.md), to end up with something like this.

![portfolio collection example]({{ "/assets/images/mm-portfolio-collection-example.jpg" | relative_url }})
![portfolio collection example]({{ "/assets/images/mm-portfolio-collection-example.jpg" | relative_url }})

0 comments on commit 6db412d

Please sign in to comment.