~mika/kethel2

6f01f3c77d9dc9c568e307afe0edf8b1553ae9d9 — mika a month ago 4deb92b
prepare for atom feed
M Makefile => Makefile +8 -3
@@ 3,7 3,7 @@ CFLAGS=-Wall -Wextra -Werror -pedantic -O2 -std=c99

DEVSERVER='https://raw.githubusercontent.com/emikulic/darkhttpd/refs/heads/master/darkhttpd.c'

.PHONY: all serve pages
.PHONY: all serve pages static

all: mkpage aggregate pages



@@ 24,9 24,11 @@ aggregate: kethel2/aggregate.c
	$(CC) $(CFLAGS) -c kethel2/aggregate.c -o tmp/aggregate.o
	$(CC) $(CFLAGS) tmp/aggregate.o -o aggregate

# list of all pages
static:
	cp -r static out/static

pages: out/index.html out/colophon.html out/thoughts.html out/blog/index.html
# list of all pages
pages: out/index.html out/colophon.html out/thoughts.html out/blog/index.html out/blog/helloworld.html

out/index.html: index.html
	./mkpage index.html out/index.html


@@ 41,3 43,6 @@ out/thoughts.html: thoughts/data.tsv thoughts/item.html thoughts/index.html
out/blog/index.html: blog/data.tsv blog/index.html blog/item.html
	./aggregate blog/data.tsv blog/item.html blog/index.html tmp/blogroll.o.html
	./mkpage tmp/blogroll.o.html out/blog/index.html

out/blog/helloworld.html: blog/helloworld.html
	./mkpage blog/helloworld.html out/blog/helloworld.html

A TODO => TODO +3 -0
@@ 0,0 1,3 @@
- media reviews n so
- gallery
- atom feeds

A atom.xml => atom.xml +20 -0
@@ 0,0 1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3c.org/2005/Atom">

	<title>mikadev.nl</title>
	<link href="https://www.m1kadev.nl/" />
	<updated>
<!-- RDATE -->
	</updated>
	<author>
		<name>mika</name>
		<uri>https://m1kadev.nl/me.html</uri>
	</author>
	<id>tag:february.m1kadev.nl,2026/www/feed#atom</id>
	<generator>
		mkpage.c
	</generator>

<!-- PUT -->

</feed>

M blog/data.tsv => blog/data.tsv +2 -2
@@ 1,2 1,2 @@
rowid	LINK	TITLE	SUMMARY
0	/blog/helloworld.html	Hello, world!	Testing blog post :3
rowid	LINK	TITLE	SUMMARY		TIME	DATE 
0	/blog/helloworld.html	Hello, world!	Testing blog post :3	15/09/2026	2026-09-15T16:39:46+0200

A blog/helloworld.html => blog/helloworld.html +31 -0
@@ 0,0 1,31 @@
<!DOCTYPE html>
<html lang="en">
    <head>
<!--LOAD include/stdhead.html -->
        <title>blog: hello, world! - m1kadev.nl</title>
    </head>

    <body>
<!--LOAD include/stdnav.html -->
        <main>
            <h1>hello, world!</h1>
	    <p>
	    	Testing content bli bla blu
	    </p>
	    <img
		    alt="Chud, with a 'billions must try' T-shirt - facing the camera, and showing one of his first drawings. Behind him, a monitor which displays a manuscript of 'Chud's tool story'."
		 width="512"
		 height="512"
		 src="/static/5f7b6ed8dce89bcce3c1afde8a9d3566.jpeg"
	    />
	    <h2 id="why">
		    Why, though?
	    </h2>
	    <p>
	    	Why not?
	    </p>
        </main>
	<hr>
<!--LOAD include/stdfooter.html -->
    </body>
</html>

A gallery/index.html => gallery/index.html +15 -0
@@ 0,0 1,15 @@
<!DOCTYPE html>
<html lang="en">
    <head>
<!--LOAD include/stdhead.html -->
        <title>PAGETITLE - m1kadev.nl</title>
    </head>

    <body>
<!--LOAD include/stdnav.html -->
        <main>
            <h1>your content here</h1>
        </main>
<!--LOAD include/stdfooter.html -->
    </body>
</html>

M kethel2/aggregate.c => kethel2/aggregate.c +1 -2
@@ 32,8 32,7 @@ int strfind(const char* haystack, char needle) {

void write_item_data(char* restrict row, const char* restrict template, FILE* out) {
	char* tok = strtok(row, "\t");
	// TODO: generalise this
	const char* pref = "thought-";
	const char* pref = "item-";
	char* label = malloc(strlen(pref) + strlen(tok) + 2);
	sprintf(label, "%s%s", pref, tok);
	char* data[8];

A static/5f7b6ed8dce89bcce3c1afde8a9d3566.jpeg => static/5f7b6ed8dce89bcce3c1afde8a9d3566.jpeg +0 -0
M thoughts/data.tsv => thoughts/data.tsv +1 -1
@@ 1,2 1,2 @@
rowid	BODY	AUTHOR	DATE
0	why are lecture halls always at an insane angle, while if you're at a concert (or other theatre show for that matter) the seats barely climb up ,, big lecture hall please contact me,	mika	2026-09-14 17:40:58
0	we always call it the 'fridge',, Howevere, why do we not call outside the 'warmdge' ?	mika	Tue, 15 Sep 16:31:15 2026 +0200

D todo => todo +0 -4
@@ 1,4 0,0 @@
- reviews
- art / pictures
- rss
- done :)