hexo-theme-minos
hexo-theme-minos copied to clipboard
[Feature Request] Make a table sortable
For a table like
| Title | Year | Category | Rating |
|---|---|---|---|
| Book 1 | 2018 | Fiction | 4.2 |
| Book 2 | 2005 | Tech | 3.9 |
| Book 3 | 2008 | Fiction | 4.3 |
It would be useful to make it sortable by columns. Example: https://www.w3schools.com/w3js/w3js_sort.asp
According to this post, we can import a Sortable JS library and simply add class name sortable to table elements in HTML to achieve this.
So is this achievable on the theme side? Or is this a feature request to Hexo? Thanks!
Thanks for your suggestion. I think it could be implemented either as a Hexo plugin or theme plugin.