Skip to content

theme-next/hexo-front-matter-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-front-matter-include

npm version

Install

# use npm tool
npm i theme-next/hexo-front-matter-include
# or use yarn
yarn add theme-next/hexo-front-matter-include

Use

You defined one or more keys that you want to include from config or data file.

In your post file front-matter use include:

---
title: Some Word...
include: post_overview
# include: [post_overview, post_webfront, ....]
---

And you should config your keys in config file. Like:

post_overview:
  categories: [overview]
  tags: [overview]
  comments: false
  toc_number: false
  ...

Or write in post_overview data file (source/_data/post_overview.yml).

categories: [overview]
tags: [overview]
comments: false
toc_number: false
...

About

Include some front-matter from config or data file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published