Skip to content

Commit 05593dd

Browse files
committedMay 5, 2015
update image/gallery documentation
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent aa87d2c commit 05593dd

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed
 

‎docs/manual.txt

+15-11
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ to your configuration::
538538

539539
That template needs to either be part of the theme, or be placed in a ``templates/``
540540
folder inside your site.
541-
541+
542542
enclosure
543543
Add an enclosure to this post when it's used in RSS. See `more information about enclosures <http://en.wikipedia.org/wiki/RSS_enclosure>`__
544544

@@ -1269,20 +1269,24 @@ The ``conf.py`` options affecting images and gallery pages are these::
12691269
# "OUTPUT_PATH/relative_destination/gallery_name"
12701270
# Default is:
12711271
GALLERY_FOLDERS = {"galleries": "galleries"}
1272-
# One or more folders containing images. The format is again a dictionary of
1273-
# {"source": "relative_destination"}. Images will be scaled down if necessary so
1274-
# that neither width nor height is greater than MAX_IMAGE_SIZE and copied to
1275-
# destination folder. A thumbnail will also be created in the same folder with
1276-
# ``.thumbnail`` inserted in the file name before the fileposts extension
1277-
# (e.g. ``tesla.thumbnail.jpg``).
1278-
IMAGE_FOLDERS = {'images': 'images'}
1279-
# More image/gallery options:
1272+
# More gallery options:
12801273
THUMBNAIL_SIZE = 180
1281-
IMAGE_THUMBNAIL_SIZE = 400
12821274
MAX_IMAGE_SIZE = 1280
12831275
USE_FILENAME_AS_TITLE = True
12841276
EXTRA_IMAGE_EXTENSIONS = []
12851277

1278+
# If set to False, it will sort by filename instead. Defaults to True
1279+
GALLERY_SORT_BY_DATE = True
1280+
1281+
# Folders containing images to be used in normal posts or pages. Images will be
1282+
# scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE options, but
1283+
# will have to be referenced manually to be visible on the site
1284+
# (the thumbnail has ``.thumbnail`` added before the file extension).
1285+
# The format is a dictionary of {source: relative destination}.
1286+
1287+
IMAGE_FOLDERS = {'images': 'images'}
1288+
IMAGE_THUMBNAIL_SIZE = 400
1289+
12861290
If you add a file in ``galleries/gallery_name/index.txt`` its contents will be
12871291
converted to HTML and inserted above the images in the gallery page. The
12881292
format is the same as for posts.
@@ -1649,7 +1653,7 @@ and it will produce:
16491653
Post List
16501654
~~~~~~~~~
16511655

1652-
.. WARNING::
1656+
.. WARNING::
16531657

16541658
Any post or page that uses this directive will **never** be considered up-to-date,
16551659
meaning that every time you build the site, that post/page and everything that

‎nikola/conf.py.in

+6-6
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,12 @@ REDIRECTIONS = ${REDIRECTIONS}
430430
# If set to False, it will sort by filename instead. Defaults to True
431431
# GALLERY_SORT_BY_DATE = True
432432
#
433-
# Folders containing images to be used in normal posts or
434-
# pages. Images will be scaled down according to IMAGE_THUMBNAIL_SIZE
435-
# and MAX_IMAGE_SIZE options, but will have to be referenced manually
436-
# to be visible on the site. The format is a dictionary of {source:
437-
# relative destination}.
438-
#
433+
# Folders containing images to be used in normal posts or pages. Images will be
434+
# scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE options, but
435+
# will have to be referenced manually to be visible on the site
436+
# (the thumbnail has ``.thumbnail`` added before the file extension).
437+
# The format is a dictionary of {source: relative destination}.
438+
439439
IMAGE_FOLDERS = {'images': 'images'}
440440
# IMAGE_THUMBNAIL_SIZE = 400
441441

0 commit comments

Comments
 (0)
Please sign in to comment.