mirror of
https://git.coop/cotech/website.git
synced 2024-11-21 14:23:06 +00:00
Use a collection for coops instead of data file
This commit is contained in:
parent
38ff063158
commit
549156c82b
9
_config.yml
Normal file
9
_config.yml
Normal file
@ -0,0 +1,9 @@
|
||||
collections:
|
||||
coops:
|
||||
output: true
|
||||
permalink: /co-op/:name
|
||||
defaults:
|
||||
- scope:
|
||||
type: coops
|
||||
values:
|
||||
layout: co-op
|
4
_coops/agile-collective.md
Normal file
4
_coops/agile-collective.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
name: Agile Collective
|
||||
website: http://agile.coop
|
||||
---
|
4
_coops/go-free-range.md
Normal file
4
_coops/go-free-range.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
name: Go Free Range
|
||||
website: http://gofreerange.com
|
||||
---
|
4
_coops/outlandish.md
Normal file
4
_coops/outlandish.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
name: Outlandish
|
||||
website: http://outlandish.com
|
||||
---
|
@ -1,4 +0,0 @@
|
||||
name,website
|
||||
Agile Collective,http://agile.coop/
|
||||
Go Free Range,http://gofreerange.com
|
||||
Outlandish,http://outlandish.com
|
|
5
_layouts/co-op.html
Normal file
5
_layouts/co-op.html
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
---
|
||||
<h1>{{ page.name }}</h1>
|
||||
|
||||
<a href="{{ page.website }}">{{ page.name }}</a>
|
@ -3,10 +3,10 @@ title: CoTech
|
||||
---
|
||||
|
||||
<ul>
|
||||
{% for member in site.data.members %}
|
||||
{% for coop in site.coops %}
|
||||
<li>
|
||||
<a href="{{ member.website }}">
|
||||
{{ member.name }}
|
||||
<a href="{{ coop.url }}">
|
||||
{{ coop.name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user