我已经为我自己的教程和需要时需要的所有其他信息安装了Base知识库。因为它很好而且应该很容易使用,所以我选择了这个安装。
所有依赖项均已安装,并且基本默认页面正在运行。但是,一旦我将新页面添加到_posts/2018-07-13-install-something.md中,我就无法在我的知识库中找到这些。
创建帖子后,您必须重新构建页面对吗?Jekyll 是使用命令构建的jekyll build
。所以我尝试了这个,但它没有成功。
在_site/account-settings/change-email/index.html中是一个示例帖子,所以我复制了目录并将其更改为_site/account-settings/install-something/之后我能够浏览到该页面。但是一旦我重新运行 jekyll build _site/account-settings/install-something 就被删除了。
我究竟做错了什么?
更新: jekyll build 的输出
root@###:/var/www/kb/html# jekyll build 配置文件:/var/www/kb/html/_config.yml 来源:/var/www/kb/html 目的地:/var/www/kb /html/_site 增量构建:禁用。使用 --incremental 生成...在 2.172 秒内完成。自动再生:禁用。使用 --watch 启用。
_config.yml
# ----
# Site
title: Base
url: "https://kb.example.com/"
baseurl:
google_analytics_key:
disqus_shortname:
newsletter_action:
# Values for the jekyll-seo-tag gem (https://github.com/jekyll/jekyll-seo-tag)
logo: /siteicon.png
description: Knowledge base template for Jekyll.
author:
name:
email:
twitter: # twitter username without the @ symbol
social:
name: Base Template
links:
- https://github.com/CloudCannon/base-jekyll-template
# -----
# Build
timezone: Etc/UTC
permalink: /:categories/:title/
plugins:
- jekyll-extract-element
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-feed
- jekyll-archives
exclude:
- Gemfile
- Gemfile.lock
- README.md
- LICENCE
collections:
sets:
jekyll-archives:
enabled: ['categories']
defaults:
-
scope:
path: ""
values:
layout: "default"
-
scope:
type: "posts"
values:
layout: "post"
comments: true
-
scope:
type: "sets"
values:
_hide_content: true
-
scope:
path: "index.html"
values:
body_class: "show_hero_search"
# -----------
# CloudCannon
social_icons:
- Facebook
- Google Plus
- Instagram
- LinkedIn
- Pinterest
- Tumblr
- Twitter
- YouTube
- Email
- RSS
types:
- Document
- Video
_comments: