====== Jekyll ====== * https://jekyllrb.com/ * https://github.com/barryclark/jekyll-now : 빠르게 지킬 블로그 구성하기 * [[http://www.jekyllnow.com/Markdown-Style-Guide/|Markdown Style Guide – Jekyll Now – Create a Jekyll Blog in minutes]] ===== 설치 ===== * [[:ruby|Ruby Programming Language]] gem 설치 구성 먼저 하고 설치 진행 * [[:docker|Docker]] 로 실행하는게 나을 듯. # jekyll 의존성에 필요한 추가 설치 Ubuntu Linux 패키지 sudo apt-get install autoconf autotools-dev automake libtool libltdl-dev # jekyll 자체 설치 sudo gem install jekyll ===== 기본 실행 ===== jekyll serve # localhost:4000 으로 블로그를 띄위줌 jeykyll service --livereload # 글 내용이 변할 때마다 브라우져도 reload함. ===== Docker로 작성시 확인 ===== * https://hub.docker.com/r/jekyll/jekyll/ * https://github.com/envygeeks/jekyll-docker * 가장 최신버전으로 ''4000'' 번 포트로 서버 실행하면서 현재 디렉토리 컨텐츠 서빙한다. 매번 컨테이너를 새로 생성한다. docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 \ -it jekyll/jekyll jekyll server --unpublished --future --incremental * ''JEKYLL_UID'', ''JEKYLL_GID'' 환경변수를 지정하여 생성한 파일의 uid,gid 지정가능. 기본 ''1000'' * ''build''만 하기 등의 명령을 직접 줄 수 있다. ===== 로컬에서 작업중인 글 확인 ===== * [[http://www.fizerkhan.com/blog/posts/Working-with-upcoming-posts-in-Jekyll.html|Working with upcoming posts in Jekyll]] * ''%%--%%future'', ''%%--%%unpublished'', ''%%--%%drafts'' 등의 옵션으로 실서버에는 배포되지 않는 작업중인 내용을 볼 수 있다. ===== with Github ===== * [[https://xho95.github.io/blog/github/pages/jekyll/minima/theme/2017/03/04/Jekyll-Blog-with-Minima.html|Jekyll: GitHub Pages 에 블로그 만들기]] * [[https://help.github.com/articles/about-github-pages-and-jekyll/|About GitHub Pages and Jekyll - User Documentation]] [[git:github|Github]] 은 Jekyll을 공식 지원하기 때문에 최종 Site까지 빌드하지 않고 블로그에 필요한 *.md 파일까지만 작성해서 Push하면 최종 사이트 빌드는 Github이 알아서 해준다. * 그 외의 static site generator는 최종 사이트 HTML 빌드까지 다 해서 올려야 하느 방식인 듯. ===== Templates ===== * [[https://github.com/thiagorossener/jekflix-template|jekflix - netflix 스타일 템플릿]] * [[https://github.com/sproogen/modern-resume-theme|Modern Resume Theme]] ===== 참조 ===== * [[https://yermilov.github.io/blog/2017/02/20/using-jekyll-asciidoctor-and-github-pages-for-static-site-creation/|Using Jekyll, Asciidoctor and GitHub Pages for static site creation - Development notes by Yaroslav Yermilov]] * https://github.com/asciidoctor/jekyll-asciidoc * https://github.com/asciidoctor/jekyll-asciidoc-quickstart * [[https://github.com/barryclark/jekyll-now|barryclark/jekyll-now: Build a Jekyll blog in minutes, without touching the command line.]]