From 549156c82bb2af8d67cd3dbbe2b9d73121b5f050 Mon Sep 17 00:00:00 2001 From: Chris Roos Date: Tue, 27 Jun 2017 14:58:29 +0100 Subject: [PATCH] Use a collection for coops instead of data file --- _config.yml | 9 +++++++++ _coops/agile-collective.md | 4 ++++ _coops/go-free-range.md | 4 ++++ _coops/outlandish.md | 4 ++++ _data/members.csv | 4 ---- _layouts/co-op.html | 5 +++++ index.html | 6 +++--- 7 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 _config.yml create mode 100644 _coops/agile-collective.md create mode 100644 _coops/go-free-range.md create mode 100644 _coops/outlandish.md delete mode 100644 _data/members.csv create mode 100644 _layouts/co-op.html diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..e6039ee --- /dev/null +++ b/_config.yml @@ -0,0 +1,9 @@ +collections: + coops: + output: true + permalink: /co-op/:name +defaults: + - scope: + type: coops + values: + layout: co-op diff --git a/_coops/agile-collective.md b/_coops/agile-collective.md new file mode 100644 index 0000000..319661d --- /dev/null +++ b/_coops/agile-collective.md @@ -0,0 +1,4 @@ +--- +name: Agile Collective +website: http://agile.coop +--- diff --git a/_coops/go-free-range.md b/_coops/go-free-range.md new file mode 100644 index 0000000..cec3c55 --- /dev/null +++ b/_coops/go-free-range.md @@ -0,0 +1,4 @@ +--- +name: Go Free Range +website: http://gofreerange.com +--- diff --git a/_coops/outlandish.md b/_coops/outlandish.md new file mode 100644 index 0000000..34a72d2 --- /dev/null +++ b/_coops/outlandish.md @@ -0,0 +1,4 @@ +--- +name: Outlandish +website: http://outlandish.com +--- diff --git a/_data/members.csv b/_data/members.csv deleted file mode 100644 index e66b97c..0000000 --- a/_data/members.csv +++ /dev/null @@ -1,4 +0,0 @@ -name,website -Agile Collective,http://agile.coop/ -Go Free Range,http://gofreerange.com -Outlandish,http://outlandish.com diff --git a/_layouts/co-op.html b/_layouts/co-op.html new file mode 100644 index 0000000..ac2a859 --- /dev/null +++ b/_layouts/co-op.html @@ -0,0 +1,5 @@ +--- +--- +

{{ page.name }}

+ +{{ page.name }} diff --git a/index.html b/index.html index fe2c0fe..c1da2b3 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,10 @@ title: CoTech ---