Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a more elegant way to insert picture in Markdown file. #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

colorfulshark
Copy link

To insert a image, you just need to:

  1. Add a new directory in "assets/posts" whose name is the same as
    your post file name, e.g, 2013-12-26-images. Then add a directory
    named "images" in that directory. Now you will have a directory
    "assets/posts/2013-12-26-images/images". Puts all images that you
    need into the directory "images".
  2. Insert following code in markdown file:
    {% include _res/image name="image-full-name" %}. Notice that the
    "image-full-name" is the full file name of your image.
  3. Rebuild.

To insert a image, you just need to:
1. Add a new directory in "assets/posts" whose name is the same as
   your post file name, e.g, 2013-12-26-images. Then add a directory
   named "images" in that directory. Now you will have a directory
   "assets/posts/2013-12-26-images/images". Puts all images that you
   need into the directory "images".
2. Insert following code in markdown file:
   {% include _res/image name="image-full-name" %}. Notice that the
   "image-full-name" is the full file name of your image.
3. Rebuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant