-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daafbc5
commit ad29e78
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Wapuugotchi collection | ||
permalink: /mission/ | ||
meta: [name,author,description,published,key] | ||
--- | ||
{ | ||
"collections": [ | ||
{% for collection in site.collections %}{% unless collection.label == "posts" or collection.label == "assets" or collection.label == "icons" %}{ | ||
"items": { | ||
{% assign filtered_items = collection.docs | where: "deactivated", 0 %}{% for item in filtered_items %}"{{ item.slug }}": { | ||
"meta": { {% for var in page.meta %} | ||
"{{ var }}": "{{ item[var] }}",{% endfor %} | ||
"deactivated": {% if item.deactivated != nil %}{{ item.deactivated }}{% else %}0{% endif %}, | ||
"priority": {% if item.priority != nil %}{{ item.priority }}{% else %}0{% endif %}, | ||
"price": {% if item.price != nil %}{{ item.price }}{% else %}0{% endif %} | ||
}, | ||
"image": "{{ item.url | absolute_url | replace: "meta.html", "image.svg" }}", | ||
"preview": "{{ item.url | absolute_url | replace: "meta.html", "preview.svg" }}" | ||
}{% unless forloop.last %}, | ||
{% endunless %}{% endfor %} | ||
}, | ||
"image": "{{ site.url }}/assets/icons/{{ collection.label }}.svg", | ||
"slug": "{{ collection.label }}", | ||
"caption": "{{ collection.label | capitalize }}" | ||
}{% unless forloop.last %}, | ||
{% endunless %}{% endunless %}{% endfor %} | ||
] | ||
} |