diff options
author | Lars Hjemli | 2007-11-11 21:57:21 +0100 |
---|---|---|
committer | Lars Hjemli | 2007-11-11 21:57:21 +0100 |
commit | d267d88c9cb1fb4a45120b86e410ab604626c6bb (patch) | |
tree | 55ee3a76da83a6272e446f5201928fe1753ea30d /ui-shared.c | |
parent | 1b7c5b2e0b918e9452694aace7c19194683989a8 (diff) | |
download | cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.tar.gz cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.tar.bz2 cgit-d267d88c9cb1fb4a45120b86e410ab604626c6bb.zip |
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 <[email protected]>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c index 5192800..2f771da 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -364,6 +364,8 @@ void cgit_print_docstart(char *title, struct cacheitem *item) | |||
364 | html_txt(title); | 364 | html_txt(title); |
365 | html("</title>\n"); | 365 | html("</title>\n"); |
366 | htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version); | 366 | htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version); |
367 | if (cgit_robots && *cgit_robots) | ||
368 | htmlf("<meta name='robots' content='%s'/>\n", cgit_robots); | ||
367 | html("<link rel='stylesheet' type='text/css' href='"); | 369 | html("<link rel='stylesheet' type='text/css' href='"); |
368 | html_attr(cgit_css); | 370 | html_attr(cgit_css); |
369 | html("'/>\n"); | 371 | html("'/>\n"); |