This theme support some cool styles to let you write a more elegent and rich-style article, such as preface, image gallery and so on. Basically it just need you to wrap your content in a HTML tag, like this:
<div class="preface">
Your preface here
</div>
So there is no magic. But you should also know that, markdown parser won't parse the markdown syntax inside the HTML tag, except the image syntax. So if you're writing something like this:
<div class="preface">
This is *some* preface.
</div>
The result will just print *some*
, instead of transform it to italic style.
Wrap your preface in a div
tag with preface
class.
<div class="preface">
Here is your preface...
</div>
Wrap your tips content in a div
tag with tip
class.
<div class="tip">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
Just add a <cite></cite>
tag below your quote.
Demo: Post page demostration
> Our destiny offers not the cup of despair, but the chalice of opportunity. So let us seize it, not in fear, but in gladness.
>
> <cite>——R.M. Nixon</cite>
Wrap your image with a <figure></figure>
tag, and place your caption in a <figcaption></figcaption>
tag.
Demo: Post page demostration
<figure>
![](/content/images/2016/05/sgblr5yvxim-jason-chen.jpg)
<figcaption>This is figcaption. A beautiful picture.</figcaption>
</figure>
Add a hash that contain alignment in your image's url.
Demo: Post page demostration
![](/content/images/2016/05/untitled-9.gif#right)
![](/content/images/2016/05/untitled-9.gif#left)
Simply add a class left
or right
to your <figure></figure>
tag.
Demo: Post page demostration
<figure class="left">
![](/content/images/2016/05/sgblr5yvxim-jason-chen.jpg)
<figcaption>hello world!</figcaption>
</figure>
Wrap your image with an element that has a large
class.
Demo: Post page demostration
<div class="large">
![](/content/images/2016/05/DSC01093.JPG)
</div>
Give your <figure></figure>
a large
class.
Demo: Post page demostration
<figure class="large">
![](/content/images/2016/05/DSC01135-1.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
Place your images within an element that has a album
class.
Demo: Post page demostration
<div class="album">
![](/content/images/2016/05/Screenshot_2016-04-09-19-16-28.png)
![](/content/images/2016/05/Screenshot_2016-04-02-00-48-25.png)
![](/content/images/2016/05/Screenshot_2016-04-01-12-03-36.png)
![](/content/images/2016/05/Screenshot_2016-04-01-12-01-33.png)
![](/content/images/2016/05/Screenshot_2016-03-24-12-13-58.png)
![](/content/images/2016/05/Screenshot_2016-03-17-22-50-05.png)
![](/content/images/2016/05/Screenshot_2016-03-17-21-27-58.png)
![](/content/images/2016/05/Screenshot_2016-03-17-17-16-07.png)
![](/content/images/2016/05/Screenshot_2016-02-22-23-54-43.png)
![](/content/images/2016/05/Screenshot_2015-12-24-09-24-12.png)
</div>
Just like image gallery, place your <figure></figure>
tags instead of images in an element that has a album
class.
Demo: Post page demostration
<div class="album">
<figure>
![](/content/images/2016/05/abta_gq74fs-matthew-wiebe.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/ocjujqqvczc-brandon-day.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/sgblr5yvxim-jason-chen-1.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/vbk7wuwczxk-maher-aridi.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/zfnk_btlapo-ismael-nieto.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/3wbxamuj7sg-roksolana-zasiadko.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
<figure>
![](/content/images/2016/05/fo5dtm6id1y-mr-cup-fabien-barral.jpg)
<figcaption>wow so handsome</figcaption>
</figure>
</div>