2016-09-01 4 views
1

Я хочу разместить простой блог на страницах Github. Поэтому я установил repository и использовал Hexo в качестве инструмента для компиляции и развертывания.Страница Github с использованием hexo, как получить мою тему?

После тестирования моего сайта локально я запускаю следующую команду:
hexo deploy --generate

К сожалению, я, как раз через несколько секунд, получить следующее сообщение от Github:

The page build failed with the following error:

The hacker theme is not currently supported on GitHub Pages. For more information, see https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site .

For information on troubleshooting Jekyll see:

https://help.github.com/articles/troubleshooting-jekyll-builds

If you have any questions you can contact us by replying to this email.

Как я могу опубликовать мой сайт с использованием темы hacker? Если это невозможно, какие темы поддерживаются Github? Как использовать их с Hexo?

ответ

0

Обходя Джекил на GitHub Pages

It is now possible to completely bypass Jekyll processing on GitHub Pages by creating a file named .nojekyll in the root of your pages repo and pushing it to GitHub. This should only be necessary if your site uses files or directories that start with underscores since Jekyll considers these to be special resources and does not copy them to the final site.

Источник: https://github.com/blog/572-bypassing-jekyll-on-github-pages

+0

Спасибо, но я получил его на работу без большой хак. – lony