Skip to content

Commit

Permalink
Merge pull request #1663 from getnikola/fix-image_folders-default
Browse files Browse the repository at this point in the history
Sanitize default IMAGE_FOLDERS output
  • Loading branch information
Kwpolska committed Apr 23, 2015
2 parents 7a6a14d + 34dc056 commit 8840157
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -15,6 +15,8 @@ Features
Bugfixes
--------

* Make ``images`` the default output directory for IMAGE_FOLDERS
(Issue #1663)
* Don't default to any swatch in bootswatch_theme (Issue #1656)
* Fix ``nikola check -l`` for absolute and full-path URL styles
(Issue #1650)
Expand Down
6 changes: 4 additions & 2 deletions docs/manual.txt
Expand Up @@ -1251,9 +1251,11 @@ its settings, change the layout, etc.).

Images to be used in normal posts can be placed in the ``images`` folder. These
images will be processed and have thumbnails created just as for galleries, but will
then be copied directly to the corresponding path in the ``output`` directory, so you
then be copied directly to the corresponding path in the ``output/images`` directory, so you
can reference it from whatever page you like, most easily using the ``thumbnail``
reST extension. If you don't want thumbnails, just use the ``files`` folder instead.
You can also adjust the output path, eg. to put your images alongside posts
(helpful if using ``PRETTY_URLS``)

The ``conf.py`` options affecting images and gallery pages are these::

Expand All @@ -1269,7 +1271,7 @@ The ``conf.py`` options affecting images and gallery pages are these::
# destination folder. A thumbnail will also be created in the same folder with
# ``.thumbnail`` inserted in the file name before the file extension
# (e.g. ``tesla.thumbnail.jpg``).
IMAGE_FOLDERS = {'images': ''}
IMAGE_FOLDERS = {'images': 'images'}
# More image/gallery options:
THUMBNAIL_SIZE = 180
IMAGE_THUMBNAIL_SIZE = 400
Expand Down
2 changes: 1 addition & 1 deletion nikola/conf.py.in
Expand Up @@ -436,7 +436,7 @@ REDIRECTIONS = ${REDIRECTIONS}
# to be visible on the site. The format is a dictionary of {source:
# relative destination}.
#
# IMAGE_FOLDERS = {'images': ''}
IMAGE_FOLDERS = {'images': 'images'}
# IMAGE_THUMBNAIL_SIZE = 400

# #############################################################################
Expand Down

0 comments on commit 8840157

Please sign in to comment.