Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancocodet authored Oct 2, 2024
1 parent d76e1e4 commit c8a5e31
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
18 changes: 1 addition & 17 deletions _config.yml
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
28 changes: 28 additions & 0 deletions _shop/collection.json
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 %}
]
}

0 comments on commit c8a5e31

Please sign in to comment.