Giter Site home page Giter Site logo

codingmatemoon / johngrib-jekyll-skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johngrib/johngrib-jekyll-skeleton

0.0 0.0 0.0 5.89 MB

my github.io jekyll blog skeleton

License: MIT License

Shell 10.92% JavaScript 29.64% Ruby 1.47% HTML 39.85% SCSS 18.12%

johngrib-jekyll-skeleton's Introduction

Vimwiki + Jekyll + Github.io

시작하기

블로그 스켈레톤을 fork 하세요.

https://github.com/johngrib/johngrib-jekyll-skeleton

제 블로그를 fork하는 것보다 블로그 스켈레톤을 fork하는 것을 권합니다. 블로그를 그냥 fork 하면 제 자기소개와 일기, 에세이까지 당신의 블로그의 컨텐츠가 됩니다.

  • 만약 그냥 fork 하신다면 제 자기소개와 일기를 포함한 _wiki의 모든 md 파일을 삭제하고 사용하세요.
  • skeleton에 있는 문서들은 튜토리얼로 생각하고 읽어주시면 됩니다.

다음 글을 읽으며 블로그의 구조를 파악하시면 운영에 도움이 될 것입니다.

https://johngrib.github.io/wiki/my-wiki/

설치하기

루비가 설치되어 있지 않을 경우 루비를 설치해 주세요. 여기에서는 rvm으로 설치하는 방법을 소개해 드립니다. 다른 방법으로도 루비를 설치할 수 있으니, 다른 방법으로 하셔도 됩니다.

루비 버전은 GitHub Pages Dependency versions을 보면 GitHub Pages에서는 2.7.4버전을 사용하고 있으니 해당 버전을 설치해 줍니다.

# See also https://rvm.io/rvm/install
$ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ curl -sSL https://get.rvm.io | bash
$ rvm install 2.7.4
$ rvm use 2.7.4

그다음 bundle install을 실행하여 의존성들을 설치합니다.

$ bundle install

Git hooks 추가하기

새로운 글을 등록하면 메타 데이터를 업데이트해 주어야 합니다. 커밋하기 전에 이를 자동으로 될 수 있도록 Git Hooks를 추가해야 합니다.

$ cp tool/pre-commit ./.git/hooks

노드 모듈 설치하기

메타 데이터 생성을 위해서 generateData.js를 실행해야 합니다. 이를 실행하기 위해서 yamljs 의존성을 설치해야 합니다.

$ npm install

실행하기

$ jekyll serve

글 작성하기

새로운 카테고리 만들기

카테고리가 있는 글을 작성하고 싶을 때는 카테고리를 먼저 만들어야 합니다. /_wiki/category-name.md같이 파일을 만들고 내용에는 다음을 추가해야 합니다.

이때 layout속성은 category가 되어야 합니다.

---
layout  : category
title   : 제목을 입력합니다.
summary : 
date    : 2022-10-06 00:00:00 +0900
updated : 2022-10-06 00:00:00 +0900
tag     : 
toc     : true
public  : true
parent  : index
latex   : false
---

* TOC
{:toc}

위키에 글 등록하기

위키를 작성할 때는 /_wiki 폴더 아래에 마크다운으로 파일을 작성합니다. 만약 카테고리 아래에 글을 작성하고 싶을 경우에는 카테고리 이름으로 폴더를 만들고 파일을 추가합니다. 예를 들어 /_wiki/category-name/document.md로 만들 수 있습니다. layoutwiki가 되어야 합니다. parent는 상위 카테고리 이름을 작성해야 합니다.

만약 상위 카테고리가 없을 경우에는 parentindex를 입력합니다.

---
layout  : wiki
title   : 제목을 적습니다
date    : 2022-10-08 11:23:00 +0900
updated : 2022-10-08 11:23:00 +0900
tag     : 
toc     : true
public  : true
parent  : category-name
latex   : false
---

* TOC
{:toc}

내용을 적습니다.

johngrib-jekyll-skeleton's People

Contributors

johngrib avatar hannut91 avatar anyjava avatar honggaruy avatar yujonglee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.