author | Lars Hjemli <hjemli@gmail.com> | 2007-11-11 20:57:21 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-11-11 20:57:21 (UTC) |
commit | d267d88c9cb1fb4a45120b86e410ab604626c6bb (patch) (unidiff) | |
tree | 55ee3a76da83a6272e446f5201928fe1753ea30d /cgitrc | |
parent | 1b7c5b2e0b918e9452694aace7c19194683989a8 (diff) | |
download | cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.zip cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.tar.gz cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.tar.bz2 |
Add support for "robots" meta-tag
With this change, cgit will start to generate the "robots" meta-tag, using
a default value of "index, nofollow".
The default value can be modified with a new cgitrc variable, "robots".
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgitrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,42 +1,47 @@ | |||
1 | ## | 1 | ## |
2 | ## cgitrc: template for /etc/cgitrc | 2 | ## cgitrc: template for /etc/cgitrc |
3 | ## | 3 | ## |
4 | 4 | ||
5 | 5 | ||
6 | ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly | 6 | ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly |
7 | ## usefull for testing. | 7 | ## usefull for testing. |
8 | #nocache=0 | 8 | #nocache=0 |
9 | 9 | ||
10 | 10 | ||
11 | ## This variable can be used to override the default value for "robots" | ||
12 | ## meta-tag. If unset, the meta-tag isn't generated. | ||
13 | #robots=index, nofollow | ||
14 | |||
15 | |||
11 | ## Set allowed snapshot types by default. Can be overridden per repo | 16 | ## Set allowed snapshot types by default. Can be overridden per repo |
12 | # can be any combination of zip/tar.gz/tar.bz2/tar | 17 | # can be any combination of zip/tar.gz/tar.bz2/tar |
13 | #snapshots=0 | 18 | #snapshots=0 |
14 | 19 | ||
15 | 20 | ||
16 | ## Enable/disable extra links to summary/log/tree per repo on index page | 21 | ## Enable/disable extra links to summary/log/tree per repo on index page |
17 | #enable-index-links=0 | 22 | #enable-index-links=0 |
18 | 23 | ||
19 | 24 | ||
20 | ## Enable/disable display of 'number of files changed' in log view | 25 | ## Enable/disable display of 'number of files changed' in log view |
21 | #enable-log-filecount=0 | 26 | #enable-log-filecount=0 |
22 | 27 | ||
23 | 28 | ||
24 | ## Enable/disable display of 'number of lines changed' in log view | 29 | ## Enable/disable display of 'number of lines changed' in log view |
25 | #enable-log-linecount=0 | 30 | #enable-log-linecount=0 |
26 | 31 | ||
27 | 32 | ||
28 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum | 33 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum |
29 | ## number of commits that should be displayed | 34 | ## number of commits that should be displayed |
30 | #summary-log=0 | 35 | #summary-log=0 |
31 | 36 | ||
32 | 37 | ||
33 | ## Restrict the number of branches printed in summary view. Set to 0 to | 38 | ## Restrict the number of branches printed in summary view. Set to 0 to |
34 | ## print all branches. | 39 | ## print all branches. |
35 | #summary-branches=0 | 40 | #summary-branches=0 |
36 | 41 | ||
37 | 42 | ||
38 | ## Restrict the number of tags printed in summary view. Set to 0 to | 43 | ## Restrict the number of tags printed in summary view. Set to 0 to |
39 | ## print all tags. | 44 | ## print all tags. |
40 | #summary-tags=0 | 45 | #summary-tags=0 |
41 | 46 | ||
42 | 47 | ||