Skip to content

int-i/int-i.github.io

Repository files navigation

int-i.github.io

인하대학교 정보통신공학과 프로그래밍 소모임 인트아이 스터디 블로그

Do not copy our blog theme without our permission!

설치

단순히 블로그에 글 작성이 목적이라면, Jekyll을 설치하지 않아도 됨

  1. Ruby 설치: RubyInstaller (ruby -v으로 설치 확인)
  2. Jekyll 설치: gem install jekyll bundler
  3. 블로그 파일 다운로드: git clone https://github.com/int-i/int-i.github.io.git
  4. 블로그 실행: jekyll serve 또는 jekyll s (초안을 포함시키려면 --drafts 옵션 추가)
  5. http://localhost:4000으로 접속

저자 등록

_data/authors.yml 파일에 아래와 같이 정보 추가

예시

Astro36: # GitHub 아이디(필수)
  name: 박승재 # 이름(필수)
  email: astro.psj@gmail.com # 이메일
  admission_year: 2019 # 학번(입학년도)
  graduated: false # 졸업여부

글 작성

_posts 디렉토리에 yyyy-mm-dd-title.md로 파일 생성 (예: 2020-03-12-post-example.md)

파일 이름은 영어로 작성해야 하며 공백( ) 대신 하이픈(-) 사용

파일 상단에 Front Matter 작성

예시

---
title: "글 작성 예시" # 글 제목
date: 2020-03-12 # 작성일
author: Astro36 # GitHub 아이디 (`_data/authors.yml`에 존재하는 아이디여야 됨)
category: example # 글 카테고리 (띄어쓰기 X, 영어로)
tags: [tag1, tag2, tag3] # 태그 (띄어쓰기 X, 영어로)
---

Front Matter의 ---는 지우면 안 됨

Front Matter 아래에 Markdown으로 본문 작성

본문에는 #(=<h1>) 태그는 사용 불가

2020-01-27-welcome.md 파일을 참고

최종적으로 사용자 글 URL은 https://int-i.github.io/category/yyyy-mm-dd/title/ 형태로 생성됨

글 이미지 업로드

assets/posts/yyyy-mm-dd-title 디렉토리를 생성 후, 해당 디렉토리에 이미지를 업로드

2020-01-27-welcome 디렉토리 참고

(22.6.18 업데이트) 외부 URL 스크랩

일반적인 글 작성과 동일하지만 categoryscrap으로 설정 (필수)

글 본문은 스크랩하려는 URL 링크만 작성

예시

---
title: "인하대 계정으로 MS Office 무료로 받기"
author: yt4307
category: scrap
---

https://youtu.be/29U-blv_dJg

참고: 2021-10-07-inha-ms-office.md

License

jekyll-compress-html is licensed under a MIT License by Anatol Broder.

normalize.css is licensed under a MIT License by Nicolas Gallagher and Jonathan Neal.