Plugin helps to sort posts by required fields
Plugin helps to sort posts by required fields
in _config.yml
custom_sort:
params: [one,two]
pathPage: 'optional'
perPage: 'optional'
All selected parameters will be moved to locals
param.name = Name no slugize
param.path = slugize path
Example:
_config.yml
custom_sort:
params: [collection]
_partial/menu.js
<% site.collection.forEach(coll=>{ %>
<a href="/<%= coll.path %>"><%= coll.name %></a>
<%})%>