Source code of my personal website (using Jekyll). If you would like to use this source code, please indicate me in the credit and let me know first, thanks! My email: dinhanhthi@gmail.com.
🚀 Demo: https://v3.dinhanhthi.com
🔥 Current version: https://dinhanhthi.com
- Clone to your github.
- Create a Netlify account.
- Link Netlify to your account.
- Create a new site and link to the cloned repo.
- Wait for Netlify to build your site.
- Voila.
# Open Gemfile and comment out "jekyll-feed" and "jeyll-sitemap" and then
git update-index --assume-unchanged Gemfile
# build container
cd docker
docker-compose -p "dat" up -d
# wait a little bit for it to build at the 1st time
# whenever working
docker start dat_local
# NOTE: for the 1st run, it takes a little long time to build and serve
# You can check what are running on background with
docker attach dat_local
# update changes for principle pages
sh update_dat.sh
Note: On Windows, you should use WSL2 to run Jekyll site.
After cloning to a local server, run these:
# install git
# install ruby
ruby --version
# install bundler
gem install bundler
# cd to the repo directory and install gems
bundle install
# run the server (http://localhost:4000)
bundle exec jekyll serve
# incremental build (only build the changes, faster)
bundle exec jekyll serve -I
# build also the posts in `_drafts`
bundle exec jekyll serve --draft