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 --versionto check if there is alreadyrubyon your system. If there is skip to step 3, else do step 2. - Download
rubyusing 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 --systemto update its core (see this post). gem install bundlerbundle install(For Windows, runcmdas Administrator)bundle exec jekyll serveto serve the site in port 4000. You can also run with drafts usingbundle exec jekyll serve --drafts
-
Add your profile to
_data/authors.ymlfile. You can put your avatar image inimages/avatarfolder -
All posts on the website are all located in
_postsfolder 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