Skip to content

Commit

Permalink
Add some docs for using images in a post
Browse files Browse the repository at this point in the history
Closes #47
  • Loading branch information
paltman committed Apr 22, 2015
1 parent 9c047c2 commit d57c5af
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/usage.md
Expand Up @@ -11,3 +11,28 @@ on social networks like Twitter and Facebook.

This is the same idea behind the `primary_image` field in the admin.


## Images

There are custom `markdown` and `creole` extensions for embedding images that
have been uploaded via the inline on the post create or edit form in the admin.

You first upload the image or images you want to use in the post by selecting
them in the file selector in the images section, and then hitting "Save and
Continue Editing". Once the form reloads, you'll see indicators above each
uploaded image with a number between two brackets, e.g. `{{ 25 }}`.

This is the syntax if you are using `creale` for adding that image to your
post. You can just copy and paste that.

If you are using `markdown` however, you will need to use the following
markup in your post:

![Alt Text](25)

or without alt text:

![](25)

Adjusting for the number of the image, of course.

0 comments on commit d57c5af

Please sign in to comment.