LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

how to add images #69

Closed carloscarcamo closed 9 years ago

carloscarcamo commented 9 years ago

Hello,

I have a little question, I would like to include some images on a post, for example:

<a href="link" target="_blank">
  <img src="./assets/images/css3.png" alt="css3" width="100">
</a>

is there any variable or something for the assets folder, a variable that can be use when writing a post in markdown?

Thanks in advance!

LouisBarranqueiro commented 9 years ago

Hi man,

  1. Enable post assets folder feature : user documentation - enable post assets folder
  2. Place your images (css.png) in the right folder of your post in source/_posts/your-post-folder
  3. Use relative path, so the url will be : css3.png

E.g :

<a href="link" target="_blank">
  <img src="css3.png" alt="css3" width="100">
</a>

If you are new to Hexo please, read Hexo documentation and Tranquilpeak documentation to get the best of them :)

Tranquilpeak 1.3 will be release in some days with new tags to help user to add images in post :)

carloscarcamo commented 9 years ago

awesome! thanks!