X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ab21082c21867e035cd925a06d6d55fb3143d883..fd90d2826a979f3844312718ad130880cf19d52c:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 7c69f60..2f771da 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -358,12 +358,14 @@ void cgit_print_docstart(char *title, struct cacheitem *item) ttl_seconds(item->ttl))); html("\n"); html(cgit_doctype); - html("\n"); + html("\n"); html("\n"); html(""); html_txt(title); html("\n"); htmlf("\n", cgit_version); + if (cgit_robots && *cgit_robots) + htmlf("\n", cgit_robots); html("\n"); @@ -373,7 +375,7 @@ void cgit_print_docstart(char *title, struct cacheitem *item) void cgit_print_docend() { - html("\n\n\n\n\n"); + html("\n\n
\n\n\n"); } int print_branch_option(const char *refname, const unsigned char *sha1, @@ -411,7 +413,7 @@ int print_archive_ref(const char *refname, const unsigned char *sha1, hashcpy(fileid, sha1); } if (!*header) { - html("

download

"); + html("

download

\n"); *header = 1; } url = cgit_pageurl(cgit_query_repo, "blob", @@ -456,21 +458,21 @@ void cgit_print_pageheader(char *title, int show_search) int header = 0; html("\n", cgit_logo); html("
"); if (cgit_query_repo) { - html("

"); + html("

"); html_txt(strrpart(cgit_repo->name, 20)); html("

\n"); html_txt(cgit_repo->desc); if (cgit_repo->owner) { - html("

\n

owner

\n"); + html("

owner

\n"); html_txt(cgit_repo->owner); } - html("

\n

navigate

\n"); + html("

navigate

\n"); reporevlink(NULL, "summary", NULL, "menu", cgit_query_head, NULL, NULL); cgit_log_link("log", NULL, "menu", cgit_query_head, NULL, NULL, @@ -484,19 +486,19 @@ void cgit_print_pageheader(char *title, int show_search) for_each_ref(print_archive_ref, &header); - html("

\n

branch

\n"); + html("

branch

\n"); html("
\n"); add_hidden_formfields(0, 1, cgit_query_page); - html("
"); + html("
"); html("\n"); html(""); - html("\n"); + html("\n"); html("
"); html("\n"); - html("

\n

search

\n"); + html("

search

\n"); html("
\n"); + html("\n
\n"); }