diff --git a/config.def.h b/config.def.h
index 31697e9..3af61d1 100644
--- a/config.def.h
+++ b/config.def.h
@@ -6,17 +6,17 @@
#define LOGO ""
#define DESC "lair of drkste aka nilix: programmer, artist, philosopher"
#define ABOUT "Derek Stevens <"\
- "nilix@nilfm.cc>
"\
- "artist, programmer, philosopher
"\
- "verify my signature: signing public key
"\
- "send me an encrypted message: encryption public key"
-#define CONTACT "contact: nilix@nilfm.cc (keys)
"
+ "nilix@nilfm.cc>
\n"\
+ "artist, programmer, philosopher
\n"\
+ "verify my signature: signing public key
\n"\
+ "send me an encrypted message: encryption public key\n"
+#define CONTACT "contact: nilix@nilfm.cc (keys)
\n"
#define FOOTER " "\
+ "src='/img/git.svg' alt='visit the nilFM hack lab.'/> \n"\
" "\
+ "src='/img/honk.svg' alt='visit me on the Fediverse.'/> \n"\
"
"
+ "src='/img/webring.svg' alt='visit the Webring.'/>
\n"
#define LICENSE "CC-BY-NC 4"
diff --git a/main.c b/main.c
index d6805fb..d56361b 100644
--- a/main.c
+++ b/main.c
@@ -69,7 +69,7 @@ int gettwtxt(FILE* f) {
char *l, *d, *m;
FILE* twtxt = fopen(SITEROOT "twtxt.txt", "r");
- scat(buf, "
recent activity:
");
+ scat(buf, "recent activity:
\n
\n");
if (!twtxt) {
error("Get twtxt feed", "no twtxt.txt");
return 0;
@@ -88,7 +88,7 @@ int gettwtxt(FILE* f) {
scat(buf, datebuf);
scat(buf, ": ");
scat(buf, msgbuf);
- scat(buf, " | ");
+ scat(buf, "\n");
d = datebuf;
while (*d) {
*d++ = 0;
@@ -100,8 +100,8 @@ int gettwtxt(FILE* f) {
i++;
}
fclose(twtxt);
- scat(buf, "
see all");
- scat(buf, "
");
+ scat(buf, "
see all\n");
+ scat(buf, "
\n");
fputs(buf, f);
return 1;
}
@@ -125,7 +125,7 @@ int fpportal(FILE* f, Lexicon* l, char* s, int head) {
if (head)
fprintf(
f,
- "",
+ "\n",
scsw(filename, ' ', '_'),
filename,
s);
@@ -210,7 +210,7 @@ int fpimg(FILE* f, char* s) {
thumbtrans(src, thumb);
fprintf(f, "\n", id, src);
fprintf(f, "\n", thumb, alt);
- fputs("", f);
+ fputs("\n", f);
return 1;
}
@@ -249,14 +249,18 @@ int fphimg(FILE* f, char* s) {
fprintf(f, "\n", id, href);
fprintf(f, "\n", thumb, alt);
- fputs("", f);
+ fputs("\n", f);
return 1;
}
int fpaudio(FILE* f, char* s) {
- fputs("", f);
+ fputs("\n", f);
return 1;
}
@@ -516,51 +520,51 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) {
if (!f)
return f;
/* begin */
- fputs("", f);
- fputs("", f);
+ fputs("\n\n", f);
+ fputs("\n", f);
fprintf(
f,
- ""
- ""
- "",
+ "\n"
+ "\n"
+ "\n",
DESC);
if (ismetanav(name)) {
- fputs("", f);
+ fputs("\n", f);
} else {
- fputs("", f);
+ fputs("\n", f);
}
fprintf(
f,
- ""
- "" NAME " — %s",
+ "\n"
+ "" NAME " — %s\n",
ismetanav(name) ? "home" : name);
- fputs("", f);
- fputs("", f);
+ fputs("\n", f);
+ fputs("\n", f);
/* header */
- fputs("", f);
+ fputs("\n", f);
if (ismetanav(name)) {
- fputs("" NAME "
", f);
+ fputs("" NAME "
\n", f);
} else {
- fputs("", f);
+ fputs("\n", f);
}
- fputs("", f);
+ fputs("\n", f);
/* about (main page only) */
if (ismetanav(name)) {
- fputs("" ABOUT "
", f);
+ fputs("" ABOUT "
\n", f);
}
/* nav */
- fputs("\n", f);
/* main */
if (!ismetanav(name)) {
- fputs("\n\n", f);
- fprintf(f, "%s
", name);
+ fputs("\n", f);
+ fprintf(f, "%s
\n", name);
if (!fpinject(f, l, srcpath))
printf(">>> Building failed: %s\n", name);
- fputs("\n\n", f);
+ fputs("\n", f);
} else {
gettwtxt(f);
}
@@ -570,7 +574,7 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) {
}
/* end */
- fputs("", f);
+ fputs("\n\n", f);
return f;
}