Skip to content

blockchainbook/website

 
 

Repository files navigation

The blockchain book - website template

How to Use

If you aren't familiar with Jekyll yet, you should know that it is a static site generator. It will transform your plain text into static websites and blogs. No more databases, slow loading websites, risk of being hacked...just your content. And not only that, with Jekyll you get free hosting with GitHub Pages! This page itself is free hosted on Github with the help of Jekyll and Affiliates template that you're currently previewing. If you are a beginner we recommend you start with Jekyll's Docs. Now if you know how to use Jekyll, let's move on to using Affiliates template in Jekyll:

Using the template with Jekyll

Download or Fork the website.

  • In your local project, open _config.yml. Set your baseurl, your Google Analytics code, Disqus username, Authors, Mailchimp, ShareThis code (https://www.sharethis.com/) etc.
  • Affiliates requires 2 plugins:
    • $ gem install jekyll-paginate
    • $ gem install jekyll-archives.
    • Edit the header & footer in default.html. Edit home in index.html. Edit the contact form in contact.html (https://formspree.io/).
  • Start blogging by adding your .md files in _posts. If you download the template you will notice it already has a few as an example.
  • YAML front matter
    • post featured - featured:true
    • post featured image - image: assets/images/mypic.jpg
    • page comments - comments:true
    • meta description (optional) - description: "this is my meta description"

YAML Post Example:

---
layout: post
title:  "We all wait for summer"
author: john
categories: [ Jekyll, tutorial ]
image: assets/images/5.jpg
featured: true
---

YAML Page Example

---
layout: page
title: the blockchain book
comments: true
---

Contribute

  • Clone the repo.
  • Create a branch off of master and give it a meaningful name
  • Open a pull request on GitHub and describe the feature or fix.

About

Affiliates - Jekyll Blogging Theme for Affiliate Marketers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.1%
  • CSS 33.4%
  • JavaScript 9.5%
  • SCSS 6.0%