@@ -538,7 +538,7 @@ to your configuration::
538
538
539
539
That template needs to either be part of the theme, or be placed in a ``templates/``
540
540
folder inside your site.
541
-
541
+
542
542
enclosure
543
543
Add an enclosure to this post when it's used in RSS. See `more information about enclosures <http://en.wikipedia.org/wiki/RSS_enclosure>`__
544
544
@@ -1269,20 +1269,24 @@ The ``conf.py`` options affecting images and gallery pages are these::
1269
1269
# "OUTPUT_PATH/relative_destination/gallery_name"
1270
1270
# Default is:
1271
1271
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:
1280
1273
THUMBNAIL_SIZE = 180
1281
- IMAGE_THUMBNAIL_SIZE = 400
1282
1274
MAX_IMAGE_SIZE = 1280
1283
1275
USE_FILENAME_AS_TITLE = True
1284
1276
EXTRA_IMAGE_EXTENSIONS = []
1285
1277
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
+
1286
1290
If you add a file in ``galleries/gallery_name/index.txt`` its contents will be
1287
1291
converted to HTML and inserted above the images in the gallery page. The
1288
1292
format is the same as for posts.
@@ -1649,7 +1653,7 @@ and it will produce:
1649
1653
Post List
1650
1654
~~~~~~~~~
1651
1655
1652
- .. WARNING::
1656
+ .. WARNING::
1653
1657
1654
1658
Any post or page that uses this directive will **never** be considered up-to-date,
1655
1659
meaning that every time you build the site, that post/page and everything that
0 commit comments