Repo for duksctf.github.io blog.
Clone the actual repo with "git clone [email protected]:duksctf/duksctf.github.io.git"
Create a Gemfile
with:
source 'https://rubygems.org'
require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
gem 'github-pages', versions['github-pages']
For ubuntu:
sudo apt-get update
sudo apt-get install ruby2.2 ruby-dev rubygems
Install bundler:
gem install bundler
gem install jekyll
gem install activesupport
gem install github-pages
then do a bundle install
To render your jekyll (do this in the repository you cloned):
bundle exec jekyll serve
output if everything is working correctly:
-> $ bundle exec jekyll serve
Configuration file: /home/mofo/works/project/jekyll_blog/duksctf.github.io/_config.yml
Source: /home/mofo/works/project/jekyll_blog/duksctf.github.io
Destination: /home/mofo/works/project/jekyll_blog/duksctf.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.382 seconds.
Auto-regeneration: enabled for '/home/mofo/works/project/jekyll_blog/duksctf.github.io'
Configuration file: /home/mofo/works/project/jekyll_blog/duksctf.github.io/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
- clone the actual repo with "git clone [email protected]:duksctf/duksctf.github.io.git"
- in the _posts directory copy the template available under _drafts/xxxx-xx-xx-CTFYEAR-name-of-the-task.md.
- Edit the template at your convenience, don't change the layout and the title, rename it with 2016-MM-DD-CTFYEAR-name-of-the-task.md
- For Markdown syntax, you can check Markdown CheatSheet
- When you think everything is ready, git checkout -b writeup-task
- git add _posts/yournewwriteup.md
- git add resources
- git commit -m 'added writeup for CTF XXX task XXX'
- git checkout master
- git merge writeup-task
- git push