tHardcode index header in config.h - scribo - Email-based phlog generator
 (HTM) git clone git://git.z3bra.org/scribo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7d2e0c329ea002343d098900cac510edd86762b8
 (DIR) parent 09c127c163d5152adfc64e9eb13782c87e43bae8
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue,  8 Sep 2020 12:06:28 +0200
       
       Hardcode index header in config.h
       
       Diffstat:
         M config.def.h                        |       7 ++++++-
         M scribo.c                            |       5 +----
       
       2 files changed, 7 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       t@@ -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";
 (DIR) diff --git a/scribo.c b/scribo.c
       t@@ -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"))