crazy-toads.github.io/links.jsonp
2018-12-03 10:25:29 +08:00

11 lines
265 B
Text

---
---
callback([
{% assign sortedposts = site.posts | sort: 'title' %}
{% for post in sortedposts reversed %}
{
"text": "{{post.title | replace:'"','\"'}}",
"href": "{{site.url}}{{post.url}}"
} {% unless forloop.last %},{% endunless%}
{% endfor %}
])