Repository for tupleblog (in Thai) based on Jekyll HPSTR theme.
First, go to _config.yml
then change line 9 for running locally. Then, change
directory to the repository and then do the following
- run
ruby --version
to check if there is alreadyruby
on your system. If there is skip to step 3, else do step 2. - Download
ruby
using Homebrew for Mac. For Windows, download RubyInstaller and DEVELOPMENT KIT regarding your OS architecture from here. For RubyInstaller, just double click and done. For DEVELOPMENT KIT, please follows its instruction. - Update your installed gems to latest version
gem update
. If updating failed try runninggem update --system
to update its core (see this post). gem install bundler
bundle install
(For Windows, runcmd
as Administrator)bundle exec jekyll serve
to serve the site in port 4000. You can also run with drafts usingbundle exec jekyll serve --drafts
-
Add your profile to
_data/authors.yml
file. You can put your avatar image inimages/avatar
folder -
All posts on the website are all located in
_posts
folder where the post name format isyyyy-mm-dd-post-name.md
. Jekyll uses markdown format for the post which can be easily written. We can provide header of each post (markdown file) as
---
layout: post
title: "Post Title"
author: Titipata (author id from authors.yml)
description: "Short description for the post"
modified: 2014-12-13
tags: [post, title, example]
comments: false (or true if you want people to leave a comment)
---
After the header of each post, you can simply write down a post. You can see example
or previous posts in the _posts
folder