no colon in twtxt header, use config setting for deployment
This commit is contained in:
parent
4518af7135
commit
ef26f06a89
3 changed files with 20 additions and 20 deletions
36
config.def.h
36
config.def.h
|
@ -1,27 +1,27 @@
|
|||
/* clang-format off */
|
||||
|
||||
#define MAINCSS "/nilfm.css?v=20220119.0"
|
||||
#define DOMAIN "https://nilfm.cc"
|
||||
#define LEXICON_SIZE 1024
|
||||
#define TWTXT "/twtxt.txt"
|
||||
#define SITEMAP "all_pages"
|
||||
#define FRONTCSS "/nilfm.css?v=20220119.0"
|
||||
#define DOMAIN "https://nilfm.cc"
|
||||
#define DEPLOY_DEST "nilix@nilfm.cc:~/lib/nilfm/"
|
||||
#define TAG_BODY_SIZE 4096
|
||||
#define LOGO_HTML "<img src='/img/nilfm_blackHole_128.png' alt='blackhole://nilFM'/>"
|
||||
#define MAINCSS "/nilfm.css?v=20220119.0"
|
||||
#define FOOTER_HTML "<div style='float:right;text-align:center;'><a href='https://hacklab.nilfm.cc' target='_blank'><img src='/img/git.svg' alt='nilFM hack lab'/></a> \n" \
|
||||
"<a href='https://cafe.nilfm.cc/u/nilix' target='_blank'><img src='/img/honk.svg' alt='honk'/></a> \n" \
|
||||
"<a href='https://webring.xxiivv.com' target='_blank'><img src='/img/webring.svg' alt='xxiivv webring'/></a> \n" \
|
||||
"<a href='https://lightcrystal.systems' target='_blank'><img src='/img/lightcrystal_bw_small.svg' alt='lightcrystal.systems'/> \n" \
|
||||
""
|
||||
#define LICENSE_HTML "<a rel='license' target='_blank' href='/legal.html'><img src='/img/cc.svg' alt='legal stuff'/></a></div>"
|
||||
#define DESC "lair of drkste aka nilix: software artisan, digital philosopher"
|
||||
#define IS_NAV_IN_HEADER 01
|
||||
#define LEXICON_SIZE 1024
|
||||
#define CONTACT_HTML "contact: <a href='mailto:nilix@nilfm.cc' class='mono'>nilix@nilfm.cc</a><br/><a href='/serv/90587A740FA4FFA0971575383B7FBC22144E6398.asc' style='font-family:monospace;display:inline-block;max-width:24ch;'>9058 7A74 0FA4 FFA0 9715 7538 3B7F BC22 144E 6398</a>\n" \
|
||||
""
|
||||
#define NAME "nilFM"
|
||||
#define TAG_BODY_SIZE 4096
|
||||
#define FRONTCSS "/nilfm.css?v=20220119.0"
|
||||
#define SITEROOT "../www/"
|
||||
#define TWTXT "/twtxt.txt"
|
||||
#define ABOUT_HTML "Derek Stevens <<a style='font-family:monospace;' href='mailto:nilix@nilfm.cc'>nilix@nilfm.cc</a>><br/>\n" \
|
||||
"software artisan, digital philosopher<br/><br/>\n" \
|
||||
"<a href='/serv/90587A740FA4FFA0971575383B7FBC22144E6398.asc' style='font-family:monospace;display:inline-block;max-width:24ch;'>9058 7A74 0FA4 FFA0 9715 7538 3B7F BC22 144E 6398</a>\n" \
|
||||
""
|
||||
#define FOOTER_HTML "<div style='float:right;text-align:center;'><a href='https://nilfm.cc/git/' target='_blank'><img src='/img/git.svg' alt='nilFM hack lab'/></a> \n" \
|
||||
"<a href='https://cafe.nilfm.cc/u/nilix' target='_blank'><img src='/img/honk.svg' alt='honk'/></a> \n" \
|
||||
"<a href='https://webring.xxiivv.com' target='_blank'><img src='/img/webring.svg' alt='xxiivv webring'/></a> \n" \
|
||||
"<a href='https://lightcrystal.systems' target='_blank'><img src='/img/lightcrystal_bw_small.svg' alt='lightcrystal.systems'/> \n"
|
||||
#define LICENSE_HTML "<a rel='license' target='_blank' href='/legal.html'><img src='/img/cc.svg' alt='legal stuff'/></a></div>"
|
||||
#define LOGO_HTML "<img src='/img/nilfm_blackHole_128.png' alt='blackhole://nilFM'/>"
|
||||
#define DESC "lair of drkste aka nilix: software artisan, digital philosopher"
|
||||
#define SITEROOT "../www/"
|
||||
#define IS_NAV_IN_HEADER 1
|
||||
|
||||
#define NAME "nilFM"
|
||||
/* clang-format on */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
DEST="nilix@lynx.uberspace.de:~/lib/nilfm/"
|
||||
DEST=$(grep "#define DEPLOY_DEST" config.h | awk '{print $3}' | sed -e 's/"//g')
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
rsync -avK --delete ../ ${DEST}
|
||||
|
|
2
main.c
2
main.c
|
@ -77,7 +77,7 @@ int gettwtxt(FILE* f) {
|
|||
char *l, *d, *m;
|
||||
FILE* twtxt = fopen(SITEROOT TWTXT, "r");
|
||||
|
||||
scat(buf, "<div id='twtxtFeed'><h2>recent activity:</h2>\n<table>\n");
|
||||
scat(buf, "<div id='twtxtFeed'><h2>recent activity</h2>\n<table>\n");
|
||||
if (!twtxt) {
|
||||
return 1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue