have random posts in the flame button

This commit is contained in:
Set Sakrecoer 2020-12-15 14:09:24 +01:00
parent 311ce9ddda
commit 22251d0729
4 changed files with 66 additions and 3 deletions

15
posts.json Normal file
View file

@ -0,0 +1,15 @@
---
layout: nil
---
[
{% assign albums = site.categories.releases %}
{% assign tracks = site.tracks %}
{% assign random = albums | concat: tracks %}
{% for post in random %}
{
"title": "{{ post.title }}",
"href": "{{ post.url }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]