diff --git a/src/routes/index.ori b/src/routes/index.ori index 67db516..9f8353c 100644 --- a/src/routes/index.ori +++ b/src/routes/index.ori @@ -1,7 +1,9 @@ (site) => ({ + site, title: "Jim Nielsen’s Notes", - children: Tree.map( - site.items, + children: `${Tree.map( + Tree.take(site.items, 10), (item) => (item) - ) + )}View all notes` + path: "/" }) \ No newline at end of file diff --git a/src/routes/shuffle.ori.html b/src/routes/shuffle.ori.html new file mode 100644 index 0000000..d335da4 --- /dev/null +++ b/src/routes/shuffle.ori.html @@ -0,0 +1,16 @@ + +Shuffle + + + diff --git a/src/site.ori b/src/site.ori index d5a56c2..6195e0d 100644 --- a/src/site.ori +++ b/src/site.ori @@ -9,14 +9,35 @@ feed.xml = Origami.rss(site_truncated) index.html = (site) - // n = tree:map(_postData/items, { - // key: (post) => post/id - // value: (post) => { - // index.html: ./templates/Page.ori.html({ - // title: post/title, - // children: ./templates/Note.ori.html(post) - // }) - // } - // }) + shuffle = { + index.html: (site) + } + + n = { + index.html: ({ + site, + title: "Archive | Jim Nielsen’s Notes", + children: + `
+ Every note I’ve published is here on this page. Use your browser’s built-in find functionality to search keywords on this page. +
+ ${Tree.map( + site.items, + (item) => (item) + )}` + path: "/n/" + }) + ...Tree.map(site.items, { + key: (post) => post.id + value: (post) => { + index.html: templates/Page.ori.html({ + title: post.title, + children: templates/Note.ori.html(post) + site: site, + path: `/n/${post.id}/` + }) + } + }) + } } diff --git a/src/templates/Note.ori.html b/src/templates/Note.ori.html index d3acff9..c6cce7e 100644 --- a/src/templates/Note.ori.html +++ b/src/templates/Note.ori.html @@ -1,5 +1,5 @@ -
+

${_.title}

${_.title}