comparison mercurial/help/config.txt @ 29471:c4fc33c477da

hgweb: expose list of per-repo labels to templates hgweb currently offers limited functionality for "classifying" repositories. This patch aims to change that. The web.labels config option list is introduced. Its values are exposed to the "index" and "summary" templates. Custom templates can use template features like ifcontains() to e.g. look for the presence of a specific label and engage specific behavior. For example, a site operator may wish to assign a "defunct" label to a repository so the repository is prominently marked as dead in repository indexes.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 30 Jun 2016 18:59:53 -0700
parents fd93b15b5c30
children 7dec5e441bf7
comparison
equal deleted inserted replaced
29470:2ff243c415b4 29471:c4fc33c477da
2024 (default: False) 2024 (default: False)
2025 2025
2026 ``ipv6`` 2026 ``ipv6``
2027 Whether to use IPv6. (default: False) 2027 Whether to use IPv6. (default: False)
2028 2028
2029 ``labels``
2030 List of string *labels* associated with the repository.
2031
2032 Labels are exposed as a template keyword and can be used to customize
2033 output. e.g. the ``index`` template can group or filter repositories
2034 by labels and the ``summary`` template can display additional content
2035 if a specific label is present.
2036
2029 ``logoimg`` 2037 ``logoimg``
2030 File name of the logo image that some templates display on each page. 2038 File name of the logo image that some templates display on each page.
2031 The file name is relative to ``staticurl``. That is, the full path to 2039 The file name is relative to ``staticurl``. That is, the full path to
2032 the logo image is "staticurl/logoimg". 2040 the logo image is "staticurl/logoimg".
2033 If unset, ``hglogo.png`` will be used. 2041 If unset, ``hglogo.png`` will be used.