将yeoman添加到github pages博客

时间:2014-03-09 00:08:10

标签: jekyll yeoman github-pages

我有一个在morenoh149.github.io上运行的博客我尝试使用jekyllrb generator将yeoman添加到我的工作流程中。我按照说明创建了一个新的yeoman项目,并将所有生成的文件和结构复制到我的博客中。但是现在github页面没有拿起博客。 https://github.com/morenoh149/morenoh149.github.io

任何人都知道github页面是如何工作的?文档很稀疏。 我将yml文件中的源代码更改为app /。所以现在当我在本地运行jekyll时,它可以工作。但是,当我推送到github页面时,它不是。

_config.yml

# Jekyll configuration precedence:
# 1. Gruntfile task
# 2. config.build.yml
# 3. config.yml

name: morenoh149.blog.yeoman
url: morenoh149.github.io
description: Harry Moreno has a blog
author:
  name: Harry Moreno
  email: morenoh149@gmail.com

# Grunt handles images and assets.
exclude: ['img', 'css', 'js', 'fonts',
          '**.png', '**.jpg', '**.jpeg', '**.gif', '**.webp', '**.svg', '**.ico']

include: ['.htaccess']
source: app

# _config.build.yml sets future and show_drafts to false on `grunt build`
future: true
show_drafts: true

# Markdown library
markdown: redcarpet
#   extensions: ['fenced_code_blocks', 'smart']

pygments: true

1 个答案:

答案 0 :(得分:0)

看起来GitHub Pages正在为您网站上的文件提供服务(例如,http://morenoh149.github.io/app/an html file with a single paragraph element)但是它并没有正确地使用所有Jekyll魔法服务。

结果是配置文件中的GitHub Pages will override the source setting。这意味着,虽然您已指定source: app,但它正在查看您的顶级目录中的内容。

解决方案是将app目录的内容移动到顶级目录中。

相关问题