Explain how to use this awesome theme for beginners
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:
PATH
: e.g. ~/.rbenv/shims:/usr/local/bin:/usr/bin:/bin
which ruby
to verify you’re indeed using the Ruby your just installed.All markdown files support HTML and Liquid language.
_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.
_pages/publications.md
shows the content, make sure to change the years
to contain all your publications._bibliography/papers.bib
contains all papers.@string{aps = {American Physical Society,}}
to select the style.selected
to tell whether you want it display this paper in the main page.abbr
to add an abbreviation (for certain styles).html
to add an html button.abstract
to add an abstract button.bibtex_show
to show a BIB button.blog/index.html
shows the content._posts/*
contains all blogs.layout
has to be post
if you want to use Disqus to add comment._includes/projects*.html
define the UI._pages/projects.md
shows the content._projects/*
contains all projects._pages/news.md
shows the content._news/*
contains all news.<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>
<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>
Create news.md
in _pages/
, you can copy projects.md
as a start, modify the content as your want using HTML and Liquid.