-
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
Showing
2 changed files
with
29 additions
and
17 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 |
---|---|---|
@@ -1,21 +1,5 @@ | ||
source: "./" | ||
theme: jekyll-theme-cayman | ||
collections: | ||
balls: | ||
shop: | ||
output: true | ||
relative_directory: _shop/_balls | ||
caps: | ||
output: true | ||
relative_path: _shop/_caps | ||
coats: | ||
output: true | ||
relative_directory: shop/coats | ||
fur: | ||
output: true | ||
directory: _shop/_fur | ||
items: | ||
output: true | ||
directory: _shop/_items | ||
shoes: | ||
output: true | ||
directory: _shop/_shoes |
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: /collection/ | ||
meta: [name,author,description,published,key] | ||
--- | ||
{ | ||
"collections": [ | ||
{% for collection in site.shop %}{% 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 %} | ||
] | ||
} |