Skip to content

Commit

Permalink
document .islink
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 5, 2015
1 parent 6a50bbe commit aa87d2c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/manual.txt
Expand Up @@ -1240,14 +1240,16 @@ Annotations require JQuery and are therefore not supported in the base theme.
You can check bootstrap theme's ``base.html`` for details on how to handle them in You can check bootstrap theme's ``base.html`` for details on how to handle them in
custom themes. custom themes.


Image Galleries Images and Galleries
--------------- --------------------


To create an image gallery, all you have to do is add a folder inside ``galleries``, To create an image gallery, all you have to do is add a folder inside ``galleries``,
and put images there. Nikola will take care of creating thumbnails, index page, etc. and put images there. Nikola will take care of creating thumbnails, index page, etc.


If you click on images on a gallery, you should see a bigger image, thanks to If you click on images on a gallery, or on images with links in post, you will
the excellent `colorbox <http://www.jacklmoore.com/colorbox>`_ see a bigger image, thanks to the excellent `colorbox
<http://www.jacklmoore.com/colorbox>`_. If don’t want this behavior, add an
``.islink`` class to your image or link.


The gallery pages are generated using the ``gallery.tmpl`` template, and you can The gallery pages are generated using the ``gallery.tmpl`` template, and you can
customize it there (you could switch to another lightbox instead of colorbox, change customize it there (you could switch to another lightbox instead of colorbox, change
Expand All @@ -1271,7 +1273,7 @@ The ``conf.py`` options affecting images and gallery pages are these::
# {"source": "relative_destination"}. Images will be scaled down if necessary so # {"source": "relative_destination"}. Images will be scaled down if necessary so
# that neither width nor height is greater than MAX_IMAGE_SIZE and copied to # that neither width nor height is greater than MAX_IMAGE_SIZE and copied to
# destination folder. A thumbnail will also be created in the same folder with # destination folder. A thumbnail will also be created in the same folder with
# ``.thumbnail`` inserted in the file name before the file extension # ``.thumbnail`` inserted in the file name before the fileposts extension
# (e.g. ``tesla.thumbnail.jpg``). # (e.g. ``tesla.thumbnail.jpg``).
IMAGE_FOLDERS = {'images': 'images'} IMAGE_FOLDERS = {'images': 'images'}
# More image/gallery options: # More image/gallery options:
Expand Down

0 comments on commit aa87d2c

Please sign in to comment.