Skip to content

dimonpanik/hexo-custom-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-custom-sort

Downloads npm LICENSE

Plugin helps to sort posts by required fields

Usage

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> 
<%})%>

About

Plugin helps to sort posts by required fields

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published