LAZYGAL.CONF(5) | File formats and conventions | LAZYGAL.CONF(5) |
NAME¶
lazygal.conf - Configuration file for lazygal, a static web gallery generator.FORMAT DESCRIPTION¶
lazygal(1) is configured using JSON files. The format looks like this:{ "sectionname": { "variable" : "string value ", "boolean" : false, "list" : ["foo", "bar"], "dictionnary" : { "key1": "value1", "key2": "value2" } }, "othersection": { "foo" : "bar" } }
This format is the preferred way to configure lazygal(1).
LEGACY FORMAT DESCRIPTION (INI)¶
The configuration file can also be an INI like file. The format looks like this:[sectionname] variable = string value boolean = Yes list = foo, bar dictionnary = key1=value1, key2=value2 [othersection] foo = bar
In this INI format, boolean values can be conveniently set in the following ways:
Please refer to the python ConfigParser documentation[1] for more information on the file format.
RUNTIME SECTION¶
The runtime defines the runtime parameters.quiet
debug
check-all-dirs
GLOBAL SECTION¶
The global defines the global parameters. Those parameters apply to all the sub-galleries.output-directory
clean-destination
preserve
exclude
dir-flattening-depth
puburl
theme
WEBGAL SECTION¶
The webgal defines the parameters for a web-gallery.default-style
webalbumpic-bg
webalbumpic-type
webalbumpic-size
image-size
thumbnail-size
video-size
In addition, size can be the name of a previously declared image-size.
thumbs-per-page
sort-medias
sort-subgals
original
original-baseurl
original-symlink
dirzip
jpeg-quality
jpeg-optimize
jpeg-progressive
publish-metadata
filter-by-tag
TEMPLATE-VARS SECTION¶
The template-vars defines the custom template variables. The variables and their value are listed in this section.Example 1. $footer in the default template
For instance, $footer is a template variable in the default template. Its value can be defined with this configuration file:
{ "template-vars": { "footer": "<p>All pics are copyright 2011 me</p>" } }
SEE ALSO¶
lazygal(1).AUTHOR¶
This manual page was written for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
COPYRIGHT¶
Copyright © 2011NOTES¶
- 1.
-
the python ConfigParser documentation
August 2011 | lazygal |