jekyll starter blog
1.0.0
静的ホスティング (例: Github Pages) でホストされるブログ投稿を書きたい開発者向けに設計された、静的に生成されたサイト。
デモ Web サイト : https://sutanlab.js.org/jekyll-starter-blog
npm install
実行して、npm とバンドラーの依存関係をすべてインストールします。_posts
のサンプル投稿をチェックして、カテゴリーとタグの割り当て例を確認してください。_config.yml
移動して編集します
# Site settings
name : Sutanlab Blog
title : Gading Nst. - Coder
description : A blog and journal about Gading Nst, Junior Developer
baseurl : " /jekyll-starter-blog " # the subpath for your site default is ""
url : " https://sutanlab.js.org " # the base hostname & protocol in your domain (e.g: https://sutanlab.github.io)
# Author Setting
username : Gading Nst.
user_description : Learner, Coder & Coffee Maniac
user_title : Welcome to My Blog Site
avatar_url : /jekyll-starter-blog/assets/img/sutan.jpeg
email : [email protected]
github_username : sutanlab
disqus_username : sutanlab
facebook_username : sgnzst
instagram_username : sutan_gnst
twitter_username : sutan_gnst
medium_username : sutan.gnst
...
src/sass
フォルダー内の_variables.scss
を編集します。
// theme color
$main : #2c3e50 ;
$sidemenu : #242f3a ;
$hover : darken ( $main , 50 % );
$sec : #FFFFFF ;
$lightGray : #F2F2F2 ;
$texts : #333333 ;
$colorcode : #3085F4 ;
$loader-color : #FFFFFF ;
/* *
* adjust with your disqus theme
* if your disqus theme is dark, the color should be darken.
* if your disqus theme is light, the color should be lighten
*/
$comment-theme : #304165 ;
// responsive cut
$cut : 37.5 rem ;
post.sh
コマンドで新しい投稿を作成するコマンド./post -c Post Title
に従うだけで、新しい投稿を作成できます。新しい投稿は.md
形式で_posts
に作成されます。新しい投稿を作成するときは、次の例に従って前付に投稿情報を入力する必要があります。
---
layout : post
title : Post Title
date : 2019-05-02 16:32:44
image : /assets/img/blog/post-image.png
description : First steps to use this template
tags :
- jekyll
- template
categories :
- I love Jekyll
twitter_text : How to install and use this template
keywords : jekyll, template, my post
---
他の./post.sh
コマンドの場合:
./post -h
出力命令./post -c $TITLE
投稿を作成./post -d $TITLE
ドラフト投稿を作成./post -p $TITLE
ドラフトを投稿に公開/プロモートしますサイトをデプロイする前に、sass、js をコンパイルし、サイト ファイルをビルドするためにnpm run build
忘れずに実行してください。
npm run deploy
for githubページにある他のブランチにデプロイします
または、 ./deploy.sh
を使用して自動デプロイを使用することもできます。
npm start
実行するか、 bundle exec jekyll server --host=$IP_ADDR --port=$PORT
実行します。
著作権 © 2019 by Gading Gading Fadhillah Nasution