How to use al-folio

Explain how to use this awesome theme for beginners

Setup environment

The theme is build on Ruby, and if you are using MacOS or don’t have root permission, you probably want to install your own Ruby (just like Anaconda for Python if you are a Python user like me). I use rbenv, the steps are as follows:

  1. Install rbenv using brew.
  2. Install your own Ruby using rbenv.
  3. Add your own ruby into your PATH: e.g. ~/.rbenv/shims:/usr/local/bin:/usr/bin:/bin
  4. Run which ruby to verify you’re indeed using the Ruby your just installed.
  5. Now your can follow the al-folio instructions to setup your own website.

All markdown files support HTML and Liquid language.

Structure

_config.yml defines all global variables. If you just started and don’t know how to read and use this file, here are some tips.

Publications

Blogs

Projects

News

FAQs

How to add images?

Add ONE image

<div class='row mt-3'>
    <div class="col-sm mt-3 mt-md-0">
        <img class="img-fluid rounded z-depth-1" src="/assets/img/1.jpg" data-zoomable>
    </div>
</div>

Add MULTIPLE images

<div class='row mt-3'>
    <div class="col-sm mt-3 mt-md-0">
        <img class="img-fluid rounded z-depth-1" src="/assets/img/1.jpg" data-zoomable>
    </div>
    <div class="col-sm mt-3 mt-md-0">
        <img class="img-fluid rounded z-depth-1" src="/assets/img/2.jpg" data-zoomable>
    </div>
    <div class="col-sm mt-3 mt-md-0">
        <img class="img-fluid rounded z-depth-1" src="/assets/img/3.jpg" data-zoomable>
    </div>
</div>

How to add tables/pdf/citations/twitters?

Al-folio post examples

How to add your own page?

Create news.md in _pages/, you can copy projects.md as a start, modify the content as your want using HTML and Liquid.