Skip to content

Commit

Permalink
Create mission.json
Browse files Browse the repository at this point in the history
  • Loading branch information
DerHerrFeldmann authored Oct 3, 2024
1 parent daafbc5 commit ad29e78
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions mission.json
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 %}
]
}

0 comments on commit ad29e78

Please sign in to comment.