2 min to read
Window에서 jekyll github blog 만들기
Window에서 jekyll github blog 만들기

- git 설치
- ruby 설치
Start Command Prompt with Ruby
$ ruby --version
-
jekyll 설치
Start Command Prompt with Ruby 실행
$ gem install jekyll bundle
$ jekyll -version
- gulp 설치
$ npm install gulp-cli -g
- jekyll theme template forking & jekyll 서버 실행
git clone https://github.com/your-github-username/jekflix-template.git
또는
https://github.com/thiagorossener/jekflix-template
에서 Use this template 클릭
jekflix-template guide
- Fork the Jekflix Template
- Clone the repo you just forked:
$ git clone https://github.com/
/jekflix-template.git</code> - Access the local project:
$ cd path/to/jekyll-template
- Install npm packages:
$ npm install
- Install Ruby dependencies:
$ bundle install
- Build Jekyll:
$ bundle exec jekyll build
$ bundle exec jekyll serve
C:\blog\jekflix-template>bundle exec jekyll serve
- Then run Gulp:
$ gulp
-
Running local
After the steps above, to run Jekyll locally, you’ll just need to run Gulp: -
$ gulp
Customization
Jekflix Template allows you to personalize your site with several settings. See the docs for more details.
For advanced theme customization, check the directory _sass for style files.
Node.js command prompt
gulp
bundle exec jekyll build
bundle exec jekyll serve
gulp 또는 build 에 오류 발생하더라고 serve하면 문제없이 된다.
C:\blog\jekflix-template>gulp
[02:11:25] Using gulpfile C:\blog\jekflix-template\gulpfile.js
[02:11:25] Starting 'default'...
[02:11:25] Starting 'images'...
[02:11:25] Starting 'mainJs'...
[02:11:25] Starting 'previewJs'...
[02:11:25] Starting 'yamlTheme'...
[02:11:26] Finished 'yamlTheme' after 1.79 s
[02:11:26] Starting 'jsonTheme'...
[02:11:27] Finished 'previewJs' after 1.95 s
[02:11:27] Finished 'jsonTheme' after 163 ms
[02:11:27] Starting 'cleanTheme'...
[02:11:27] Finished 'cleanTheme' after 132 ms
[02:11:27] Finished 'mainJs' after 2.41 s
[02:11:27] gulp-imagemin: Minified 22 images (saved 74.8 kB - 18.6%)
[02:11:27] Finished 'images' after 2.58 s
[02:11:27] Starting 'config'...
[02:11:27] Finished 'config' after 80 ms
[02:11:27] Starting 'jekyll'...
[02:11:27] 'jekyll' errored after 6.27 ms
[02:11:27] Error: spawn bundle.bat ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[02:11:27] 'default' errored after 2.68 s
C:\blog\jekflix-template>bundle exec jekyll serve
Configuration file: C:/blog/jekflix-template/_config.yml
Source: C:/blog/jekflix-template
Destination: C:/blog/jekflix-template/_site
Incremental build: disabled. Enable with --incremental
Generating...
PaginateContent: 1 item could not be split (no separators?)
done in 2.834 seconds.
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Auto-regeneration: enabled for 'C:/blog/jekflix-template'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
서버 재구동이 필요한 필요한 경우 : _config.xml 변경시 ex) pagination, two column 등
_post : md 파일명에 한글 넣으면 안됨 -.-;
Comments