stagit

static git page generator  https://git.ce9e.org
git clone https://git.ce9e.org/stagit.git

commit
e57365bbd97ef409ecddadddbc913585cf08c535
parent
a6324a7dfb1cb621fe39a2cacc38c7f3fd5e876e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-06-29 07:17
reponame before title

Diffstat

M src/stagit.c.in 12 ++++++------

1 files changed, 6 insertions, 6 deletions


diff --git a/src/stagit.c.in b/src/stagit.c.in

@@ -321,17 +321,17 @@ write_header(FILE *fp, const char *title, const char *relpath)
  321   321 	T("<head>\n");
  322   322 	T("<meta charset=\"UTF-8\">\n");
  323   323 	T("<meta name=\"viewport\" content=\"width=device-width\">\n");
  324    -1 	T("<title>{title}");
  325    -1 	if (title[0] && reponame[0])
  326    -1 		T(" - ");
  327    -1 	T("{reponame}");
   -1   324 	T("<title>{reponame}");
  328   325 	if (description[0]) {
  329   326 		T(": {description}");
  330   327 	}
   -1   328 	if (title[0]) {
   -1   329 		T(" - {title}");
   -1   330 	}
  331   331 	T("</title>\n");
  332   332 	if (favicon[0])
  333   333 		T("<link rel=\"icon\" type=\"image/png\" href=\"{favicon:%s}\" />\n");
  334    -1 	T("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"{reponame} Atom Feed\" href=\"{relpath:%s}atom.xml\" />\n");
   -1   334 	T("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"{reponame} Feed\" href=\"{relpath:%s}atom.xml\" />\n");
  335   335 	if (stylesheet[0])
  336   336 		T("<link rel=\"stylesheet\" type=\"text/css\" href=\"{stylesheet:%s}\" />\n");
  337   337 	T("</head>\n");
@@ -876,7 +876,7 @@ main(int argc, char *argv[])
  876   876 	fp_log = efopen("log.html", "w");
  877   877 	fp_atom = efopen("atom.xml", "w");
  878   878 
  879    -1 	write_header(fp_index, "Files", "");
   -1   879 	write_header(fp_index, "", "");
  880   880 	write_files_header(fp_index);
  881   881 
  882   882 	write_header(fp_log, "Log", "");