# use npm tool
npm i theme-next/hexo-front-matter-include
# or use yarn
yarn add theme-next/hexo-front-matter-include
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
...