Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hexo-generator-topindex with all npm packages installed. Try it out:

var hexoGeneratorTopindex = require("hexo-generator-topindex")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hexo-generator-topindex v0.3.0

Top and Index generator for Hexo.


Top and Index generator for Hexo.


$ npm install hexo-generator-topindex --save


  per_page: 10
  order_by: -date
  • per_page: Posts displayed per page. (0 = disable pagination)
  • order_by: Posts order. (Order by date descending by default)

Post set

You can set property top to finish top, the higher the priority

title: Hello World
date: 2017-03-12 19:45:02
top: 5
categories: "Hexo Guid" 
tags: [Hexo]
description: Hello world on hexo!
Welcome to [Hexo](! This is your very first post. Check [documentation]( for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting]( or you can ask me on [GitHub](



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free