Github Pages 显示 future 日期的帖子

标签 github jekyll

我在 _posts 上的帖子数.发布文件具有如下模式

├── _posts
│   ├── 2016-10-02-SomeContent.md
│   ├── 2016-10-03-AnotherContent.md

在我的本地机器上 (ubuntu 16.04 LTS) 如果我给 post file 加上前缀名称其中 future date 喜欢 2017-10-03-FutureContent.md未显示带有 future 日期前缀的帖子。

我正在使用 bundle exec jekyll serve运行项目

但是当我把它推到 Github它是可见的,并将发布日期显示为 future 日期。

Using this theme

为什么我在本地机器上看不到帖子,但推送到 Github 时它是可见的?

最佳答案

您应该与:

bundle exec jekyll serve --future

之所以在 GitHub 上可用是因为:GitHub's pages-gem enables the future flag

关于Github Pages 显示 future 日期的帖子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39908789/

相关文章:

github - 在 GitHub 中收藏问题

html - 如何使用 Jekyll 按自定义 YAML 前端变量对帖子进行排序?

jekyll - Github Pages root 使用 Jekyll 提供 404

jekyll - Jekyll在Github Pages:如何在脚注中包含外部内容?

显示类型为 text/plain 的 CSS 文件

Git:如何 rebase 一个裸仓库

git - 如何为 pull 请求设置默认 fork ?

github - 您如何在 github 中查看您的私有(private)事件?

有序列表中的 Jekyll Kramdown 代码 - 数字重置

jekyll - 更新本地 Jekyll 项目