🎮
Aomori
English
English
  • Getting Started
    • Introduction
    • Internationalization (i18n)
    • Demo
  • Features
    • Theme
    • Page
    • Article
    • Comment
    • Search
  • Types
    • Page
    • Article
由 GitBook 提供支持
在本页
  • Cover Image
  • Cover Video
  • Article Header Image
  • Reprint Link
  • Reference Link
  • Top
  • Video
  1. Features

Article

上一页Page下一页Comment

最后更新于3年前

Configuration in the article'sFront-matter

Cover Image

Support Relative Path and Full Path, refer to 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

photos:
- xxx.jpg
- xxx.jpg

Reprint Link

link_reprint:
  -
    url: url
    title: title
  -
    url: url
    title: title

This configuration will show the badge on the homepage.

Reference Link

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

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.

More ways to use

Resource Folder
Resource Folder
hexo-generator-index