From 6db412d3637e04961981c8cbbf520f3339c3c4be Mon Sep 17 00:00:00 2001 From: Dan Wilde Date: Mon, 28 Oct 2019 00:14:58 +0000 Subject: [PATCH] Added another step (#2294) The step is required to get the portfolio collection to work. --- docs/_docs/13-collections.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/_docs/13-collections.md b/docs/_docs/13-collections.md index 4e05cb00cd21..8a88b51a5e0a 100644 --- a/docs/_docs/13-collections.md +++ b/docs/_docs/13-collections.md @@ -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 }}) \ No newline at end of file +![portfolio collection example]({{ "/assets/images/mm-portfolio-collection-example.jpg" | relative_url }})