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,58 +1,63 @@ | |||
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 | ||
43 | ## The "Idle" column on the repository index page can read a timestamp | 48 | ## The "Idle" column on the repository index page can read a timestamp |
44 | ## from the specified agefile (if this file cannot be found, the mtime | 49 | ## from the specified agefile (if this file cannot be found, the mtime |
45 | ## of HEAD is used). | 50 | ## of HEAD is used). |
46 | ## The cgit repo on hjemli.net uses the the following command in it's | 51 | ## The cgit repo on hjemli.net uses the the following command in it's |
47 | ## post-receive hook to update the age-file: | 52 | ## post-receive hook to update the age-file: |
48 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ | 53 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ |
49 | ## --count=1 > $GIT_DIR/info/web/last-modifie | 54 | ## --count=1 > $GIT_DIR/info/web/last-modifie |
50 | ## | 55 | ## |
51 | #agefile=info/web/last-modified | 56 | #agefile=info/web/last-modified |
52 | 57 | ||
53 | 58 | ||
54 | ## Git detects renames, but with a limit on the number of files to | 59 | ## Git detects renames, but with a limit on the number of files to |
55 | ## consider. This option can be used to specify another limit (or -1 to | 60 | ## consider. This option can be used to specify another limit (or -1 to |
56 | ## use the default limit). | 61 | ## use the default limit). |
57 | ## | 62 | ## |
58 | #renamelimit=-1 | 63 | #renamelimit=-1 |