diff --git a/docs/changelog.rst b/docs/changelog.rst index 357e169..02b2213 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -24,6 +24,8 @@ Released on 2014-xx-xx. about the incompatibility between autorotation and EXIF copy. - New settings ``ignore_directories`` and ``ignore_files`` to filter directories and files with pattern matching. +- New setting ``colorbox_column_size`` to customize the column width of the + colorbox theme. Version 0.6.0 ~~~~~~~~~~~~~ diff --git a/sigal/settings.py b/sigal/settings.py index 4d4d8e5..1354334 100644 --- a/sigal/settings.py +++ b/sigal/settings.py @@ -34,6 +34,7 @@ _DEFAULT_CONFIG = { 'contrast': 1.0, 'sharpness': 1.0}, 'albums_sort_reverse': False, 'autorotate_images': True, + 'colorbox_column_size': 4, 'copy_exif_data': False, 'copyright': '', 'destination': '_build', diff --git a/sigal/templates/sigal.conf.py b/sigal/templates/sigal.conf.py index d4d3ede..712c6dd 100644 --- a/sigal/templates/sigal.conf.py +++ b/sigal/templates/sigal.conf.py @@ -130,3 +130,10 @@ ignore_files = [] # A symbolic link is used if ``orig_link`` is set to True (see above). # files_to_copy = (('extra/robots.txt', 'robots.txt'), # ('extra/favicon.ico', 'favicon.ico'),) + +# Colorbox theme config +# The column size is given in number of column of the css grid of the Skeleton +# framework which is used for this theme: http://www.getskeleton.com/#grid +# Then the image size must be adapted to fit the column size. +# The default is 4 columns which gives 220px. 3 columns gives 160px. +# colorbox_column_size = 4 diff --git a/sigal/themes/colorbox/templates/index.html b/sigal/themes/colorbox/templates/index.html index 4192cb9..a481c60 100644 --- a/sigal/themes/colorbox/templates/index.html +++ b/sigal/themes/colorbox/templates/index.html @@ -17,11 +17,9 @@
-