hexo-generator-index-updated

Index generator for Hexo.(top -updated)

Usage no npm install needed!

<script type="module">
  import hexoGeneratorIndexUpdated from 'https://cdn.skypack.dev/hexo-generator-index-updated';
</script>

README

hexo-generator-index-updated

Build Status NPM version Coverage Status

Index generator for Hexo, Sort by top and updated

Installation

$ npm uninstall hexo-generator-index --save
$ npm install hexo-generator-index-updated --save

Feautres

This version supports pin-top feature, you can add the top: True field to post's front-matter to pin it.

Options

Add or modify the following section to your root _config.yml file

index_generator:
  path: ''
  per_page: 10
  order_by: -updated
  • path: Root path for your blogs index page. (default = '')
  • per_page: Posts displayed per page. (0 = disable pagination)
  • order_by: Posts order. (Order by -updated or -date)

License

MIT