summaryrefslogtreecommitdiff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-11-11 21:57:21 +0100
committerLars Hjemli <hjemli@gmail.com>2007-11-11 21:57:21 +0100
commitd267d88c9cb1fb4a45120b86e410ab604626c6bb (patch)
tree55ee3a76da83a6272e446f5201928fe1753ea30d /ui-shared.c
parent1b7c5b2e0b918e9452694aace7c19194683989a8 (diff)
downloadcgit-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 <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
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)
html_txt(title);
html("</title>\n");
htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
+ if (cgit_robots && *cgit_robots)
+ htmlf("<meta name='robots' content='%s'/>\n", cgit_robots);
html("<link rel='stylesheet' type='text/css' href='");
html_attr(cgit_css);
html("'/>\n");
tle='2008-03-07 17:54:38 +0100'>2008-03-07Better session handlingRené 'Necoro' Neumann1-5/+54 2008-03-07Small changesRené 'Necoro' Neumann1-1/+4 2008-03-07Updated shm module to 1.2René 'Necoro' Neumann1-8/+21 2008-03-07Update TODORené 'Necoro' Neumann1-3/+1 2008-03-07hmm ... yesRené 'Necoro' Neumann1-1/+1 2008-03-06Used better exceptions for configuration parserRené 'Necoro' Neumann1-26/+114 2008-03-06Update translationRené 'Necoro' Neumann2-349/+393 2008-03-06Update createpot.shRené 'Necoro' Neumann1-3/+2 2008-03-06Use 'nofork' instead of 'nolistener'René 'Necoro' Neumann1-3/+3 2008-03-05Install glade files into template dir and not data dirRené 'Necoro' Neumann2-2/+1 2008-03-05Added dependency listRené 'Necoro' Neumann3-117/+237