Article

Configuration in the article'sFront-matter

Cover Image

Support Relative Path and Full Path, refer to resource folder Resource Folder

cover: xxx.jpg

Cover Video

Use Full Path, recommend CDN

Each article can only have one cover video, and only one of the cover image and the cover video can exist at the same time.

video:
  src: src # Full Video Link
  poster: poster # Full Poster Link

Article Header Image

Support Relative Path and Full Path, refer to resource folder Resource Folder

photos:
- xxx.jpg
- xxx.jpg
link_reprint:
  -
    url: url
    title: title
  -
    url: url
    title: title

This configuration will show the badge on the homepage.

link_refer:
  -
    url: url
    title: title
  -
    url: url
    title: title

Top

Install dependencies in the Hexo directory

npm i hexo-generator-index -S

Add options in the article Front-matter

sticky: 100

More ways to use hexo-generator-index

This configuration will show the badge on the homepage.

Video

We have optimized the video in the content of the article, you only need to directly use the HTML Video Tag like <video src="xxx"/> when writing the article.

最后更新于