]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add support for "robots" meta-tag
[ps-cgit] / ui-shared.c
index 519280018184c6afe7d1988e6ec1a50d709b1cb2..2f771da91c6db748e4afc553a209befad8d2a0f1 100644 (file)
@@ -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");