scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit 7d2e0c329ea002343d098900cac510edd86762b8
parent 09c127c163d5152adfc64e9eb13782c87e43bae8
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  8 Sep 2020 12:06:28 +0200

Hardcode index header in config.h

Diffstat:
Mconfig.def.h | 7++++++-
Mscribo.c | 5+----
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -1,6 +1,11 @@ char *basedir = "."; char *datefmt = "%c"; -char *phlogname = "z3bra's lair"; char *host = "z3bra.org"; int port = 70; + +char *head = + "[i| Civis pacem para bloggum|Err||]\n" + "[i|──────────────────────────────────────────────────────────────────────|Err||]\n" + "[i||Err||]\n" + "[i|latest entries:|Err||]\n"; diff --git a/scribo.c b/scribo.c @@ -166,10 +166,7 @@ writeindex(FILE *out, char *dir) if (!dirp) return -1; - fprintf(out, "[i|%69s|Err||]\n", phlogname); - fprintf(out, "[i|──────────────────────────────────────────────────────────────────────|Err||]\n"); - fprintf(out, "\n"); - fprintf(out, "\nlog entries:\n\n"); + fprintf(out, "%s", head); while ((d = readdir(dirp))) { if (d->d_type != DT_REG || !strstr(d->d_name, ".txt"))