November 29, 2022
<**KRimwoo.github.io**> repositiry 생성 후 , PC의 local repository에 연결하기
기본환경은 window에서 powershell을 이용했다. (Git 설치도 완료)
gem install jekyll bundler
을 통해 jekyll을 설치한다.
jekyll -v
명령을 통해 잘 설치되었는지 확인할 수 있다.
local directory 에서 Jekyll 시작하기
(수정된 모든사항은 올바르게 add, commit, push 해준다.)
예시) “Hydejack” theme
https://github.com/hydecorp/hydejack-starter-kit
github에 올라와 있는 테마의 repository를 local에 clone 해온다. 그리고 내 블로그 local repository에 덮어쓰기로 복사한다. bundle exec jekyll serve
를 실행하면localhost:4000 에서 테마의 기본 페이지를 확인할 수 있다.
url: https://KRimwoo.github.io
# The title of your blog. Used in the sidebar and the browser tab.
title: WooRim's Blog
# This should be the same author as first entry in `_data/authors.yml`.
author:
# Used by `jekyll-feed`:
name: WooRim Kim
email: [email protected]
추가로 _data/authors.yml
를 열어 블로그 작성자의 소개 글을 수정할 수도 있다.
Menu bar도 필요에 맞게 수정해준다.
# Add links to the sidebar.
menu:
- title: Posts
url: /example/
기존에 작성한 post는 /example/_posts 에 넣어주었다.
(해당 menu에 대한 소개는 /_featured_categories/example.md 에서 수정한다.)
# (Optional) Write a short (~150 characters) description of this featured tag.
description: >
These are my very first posts!
+추가로 Hydejack theme의 적용 사항을 github.io 페이지에서 확인할 수 없다면 github repository 의 action 항목에서 페이지 빌드 현황을 확인할 수 있다. 빌드에 실패했다는 메세지를 확인했다면 _config.yml 의 마지막줄에서 remote_theme 영역을 uncomment해주면 된다.
# A (square) logo for your site.
# If provided, it will be shown at the top of the sidebar.
# It also used by the `jekyll-seo-tag` plugin.
logo: /assets/img/woorim.png
favicon의 경우assets/ 폴더에 icon폴더가 없다면 생성해주고, 맘에 드는 favicon을 다운 받아 favicon.ico 이름으로 넣어주면 자동으로 적용된다.
이후에 _config.yml 파일에서 post의 comment 영역을 찾아 true로 바꾸어주고, comment setting 의
# # You can use the following to enable comments on all posts.
- scope:
type: posts
values:
comments: true
# Setting a disqus shortname will enable the comment section on
# pages with `comments: true` in the front matter.
disqus: gitblog-woorim