Configuration in the article'sFront-matter
Front-matter
Support Relative Path and Full Path, refer to resource folder Resource Folderarrow-up-right
Relative Path
Full Path
cover: xxx.jpg
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
photos: - xxx.jpg - xxx.jpg
This configuration will show the badge on the homepage.
Install dependencies in the Hexo directory
Add options in the article Front-matter
More ways to use hexo-generator-indexarrow-up-right
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.
HTML Video Tag
<video src="xxx"/>
最后更新于4年前
link_reprint: - url: url title: title - url: url title: title
link_refer: - url: url title: title - url: url title: title
npm i hexo-generator-index -S
sticky: 100