Giter VIP home page Giter VIP logo

blog's Introduction

This blog is hosted on GitHub Pages using Jekyll. If you want to fork this blog and make your own, here is how you get started.

Clone it

First, you need to fork this repository to your own account. Github looks for a branch called gh-pages, so create your blog content there.

# fork the repository using the github UI
git clone [email protected]:username/blog.git ~/projects/blog
cd ~/projects/blog
git checkout gh-pages

You probably also want to remove my posts, and my git history.

rm -f _posts/*
rm -rf .git
git init
git checkout gh-pages
git add .
git commit -m "Initial commit"
git remote add origin [email protected]:username/blog.git
git push -u --force origin master

Install Dependencies

Linux

sudo apt-get install ruby1.9.1-dev python-pygments
sudo gem update --system
sudo gem install jekyll

OSX

brew update
brew install ruby rbenv ruby-build
eval "$(rbenv init -)"  # update PATH
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile  # and update PATH in future shells
rbenv install
gem install bundler
bundle install  # may need to re-open shell to get updated PATH
bundle exec jekyll serve

Run it!

bundle exec jekyll serve --watch

You should now be able to open http://localhost:4000/blog/index.html

Publish

Just create new files in _posts in the format 2013-01-01-post-title.md. Here is a template to get you started:

---
layout: post
title: This is my new post
tags: python, linux
---

I [cloned this blog](https://github.com/chase-seibert/blog)

While you're editing, you can view your changes live. When you're done, just push as normal.

git add .
git commit -m "my first blog entry"
git push origin gh-pages

Your blog should show up on http://username.github.io/blog.

blog's People

Contributors

chase-seibert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.