Am Thu, 28 Feb 2013 23:13:33 -0800 (PST) schrieb [email protected]: > I'm attempting to allow different template output for different > groups of pages. As such, I'd like to be able to define a variable > orso per page (source file) that defines the 'group' that it is a > part of. Then I'd like to be able to access that variable in the > HTML/Jinja template, to allow for conditional output in the template.
Use file-wide metadata <http://sphinx-doc.org/markup/misc.html#file-wide-metadata>, e.g. :group: printable You can access this variables in your template using the 'meta' variable, e.g. {%- if meta and meta.group == 'printable' %} ... { %endif %} -- Privacy Indicator Unity appindicator to switch privacy settings <http://www.florian-diesch.de/software/indicator-privacy/>
signature.asc
Description: PGP signature
