Jekyll - 添加自定义页面

Jekyll - Add custom page

我想在不同的文件夹下添加一些自定义页面,而不是 _posts

我想在里面使用 _doc 我有多个文件。

_doc
 |_installation.md
 |_configure.md
 |_uninstall.md

我试过了。但是当我点击 URL 时出现 404 错误。

installation.md _doc 文件夹中的文件

---
layout: post
date: 2020-06-06 22:00:00 +0530
title: DOC for installation
description: DOC for installation
categories:
- doc
tags:
- doc
permalink: /doc/installation
---

Rest of the content goes here

我能解决这个问题。

只需在配置文件中添加 _doc

include: ['_doc']