This commit is contained in:
Stephen Cochrane 2021-04-16 20:56:50 +02:00
parent ac17fb4eef
commit 44f3b691d1
4 changed files with 11 additions and 13 deletions

View File

@ -4,9 +4,9 @@ CC=gcc
FLAGS=-Wall -pedantic FLAGS=-Wall -pedantic
EXE=bin/GenBlog EXE=bin/GenBlog
all: comp blog build all: build
demo: comp blog buildd demo: buildd
comp: install comp: install
$(CC) $(FLAGS) src/GenBlog.c -o $(EXE) $(CC) $(FLAGS) src/GenBlog.c -o $(EXE)

View File

@ -76,19 +76,17 @@ SBLOCK. What I consider bloat
EBLOCK. EBLOCK.
SBLOCK. Contact Details SBLOCK. Contact Details
* Fediverse: @x@social.skiqqy.xyz * Email: a/mailto:skiqqy@redxen.eu/skiqqy@redxen.eu/ (preferred)
\\\\ \\\\
* Twitter: @posix_patrol * Fediverse: a/https://social.skiqqy.xyz/x/x@social.skiqqy.xyz/
\\\\ \\\\
* Instagram: @_skiqqy * Twitter: a/https://twitter.com/posix_patrol/@posix_patrol/
\\\\ \\\\
* Email: ohmyskippy@disroot.org * Instagram: a/https://www.instagram.com/_skiqqy/@_skiqqy/
\\\\ \\\\
* xmpp: ohmyskippy@disroot.org * xmpp: ohmyskippy@disroot.org
\\\\ \\\\
* Discord: Skiqqy#1159 * Discord: Skiqqy#1159
EBLOCK. \\\\
* IRC: skiqqy
SBLOCK. Other
* IRC: irc.skiqqy.xyz:6667
EBLOCK. EBLOCK.

View File

@ -11,6 +11,7 @@
} }
a{ a{
text-decoration: none;
color:#DC143C color:#DC143C
} }

View File

@ -28,7 +28,7 @@ int main() {
while ((ent = readdir(dir)) != NULL) { while ((ent = readdir(dir)) != NULL) {
if (strcmp(ent->d_name, ".") && strcmp(ent->d_name, "..")) { if (strcmp(ent->d_name, ".") && strcmp(ent->d_name, "..")) {
sprintf(htmlName, "./blogs/"); sprintf(htmlName, "./blogs/");
sprintf(link, ""); link[0] = 0;
c = ent->d_name; c = ent->d_name;
i = 0; i = 0;
@ -62,7 +62,6 @@ int main() {
} }
void genBP(char *file) { void genBP(char *file) {
char buff[256];
curr = fopen(file, "r"); curr = fopen(file, "r");
// just for debug // just for debug
@ -102,7 +101,7 @@ void echoFile(FILE *fp) {
strcat(line, cat); strcat(line, cat);
} else { } else {
printf("%s\n", line); printf("%s\n", line);
sprintf(line, ""); line[0] = 0;
} }
ch = getc(fp); ch = getc(fp);
} }