Introduction
Introduction Statistics Contact Development Disclaimer Help
timprove header and footer - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit e3006c9373d8fff3e2e9d15a8b1990022064d4f6
parent d16e00a72b89d1b696f0712a4556fc76a2253831
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 7 Dec 2015 18:57:46 +0100
improve header and footer
Diffstat:
M urmoms.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/urmoms.c b/urmoms.c
t@@ -23,25 +23,25 @@ int
writeheader(FILE *fp)
{
fputs("<!DOCTYPE HTML>"
- "<html dir=\"ltr\" lang=\"en\"><head>"
- "<meta http-equiv=\"Content-Type\" content=\"text/html; charse…
- "<meta http-equiv=\"Content-Language\" content=\"en\" />", fp);
- fprintf(fp, "<title>%s%s%s</title>", name, description[0] ? " - " : ""…
- fprintf(fp, "<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.pn…
- fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" tit…
+ "<html dir=\"ltr\" lang=\"en\">\n<head>\n"
+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charse…
+ "<meta http-equiv=\"Content-Language\" content=\"en\" />\n", f…
+ fprintf(fp, "<title>%s%s%s</title>\n", name, description[0] ? " - " : …
+ fprintf(fp, "<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.pn…
+ fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" tit…
name, relpath);
- fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.c…
- "</head><body><center>");
- fprintf(fp, "<h1><img src=\"%slogo.png\" alt=\"\" /> %s</h1>", relpath…
- fprintf(fp, "<span class=\"desc\">%s</span><br/>", description);
- fprintf(fp, "<a href=\"%slog.html\">Log</a> |", relpath);
- fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);
- fprintf(fp, "<a href=\"%sstats.html\">Stats</a>", relpath);
+ fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle…
+ fputs("</head>\n<body>\n", fp);
+ fprintf(fp, "<h1><img src=\"%slogo.png\" alt=\"\" /> %s <span class=\"…
+ relpath, name, description);
+ fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
+ fprintf(fp, "<a href=\"%sfiles.html\">Files</a>", relpath);
+ /*fprintf(fp, "| <a href=\"%sstats.html\">Stats</a>", relpath);*/
if (hasreadme)
fprintf(fp, " | <a href=\"%sreadme.html\">README</a>", relpath…
if (haslicense)
fprintf(fp, " | <a href=\"%slicense.html\">LICENSE</a>", relpa…
- fputs("</center><hr/><pre>", fp);
+ fputs("\n<hr/>\n<pre>", fp);
return 0;
}
t@@ -49,7 +49,7 @@ writeheader(FILE *fp)
int
writefooter(FILE *fp)
{
- return !fputs("</pre></body></html>", fp);
+ return !fputs("</pre>\n</body>\n</html>", fp);
}
FILE *
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.