Write blog with github and jekyll

To get all categories:
categories_list = site.categories # all categories

for category in categories_list
  category[0] # name of category
  category[1].size # sum of its posts
  category[1] # list of posts
Add class to markdown content
### Archived
{:.home-page-title}
Using dropbox for hosting image
  • Create dropbox folder share
  • Upload image
  • Copy link share
  • Change www.dropbox.com to dl.dropboxusercontent.com
<img class="img-responsive" src="https://www.dropbox.com/s/iqcfrs84pv1r...">
#to
<img class="img-responsive" src="https://dl.dropboxusercontent.com/s/iqcfrs84pv1r...">
View on mobile browser
  • Connect computer to internet through mobile bluetooth or USB cable
  • View ip for mobile connect: ifconfig (on linux) . IP_ADDRESS
  • Edit hosts file
    # hosts file
    127.0.0.1     localhost
    IP_ADDRESS    localhost
    
  • Binding server
    jekyll serve --host=0.0.0.0
    
Tagged with blog