Neocities.org

crossroads

kaa.neocities.org

153,356 views
38 followers
5,726 updates
0 tips
I'm curious to see where you take your website.
2 likes
I like your website. It feels nice.
3 likes
Using the neocities API, you can automatically generate what HTML you need for your index. You may do so by naming your posts in a way that they are naturally sorted in the correct order, request a listing of all your files from the neocities API, then generate HTML for all files in that output that match your naming pattern, that which you then upload back to neocities.org as index.html.
3 likes
kaa 1 year ago

Regarding naming scheme, sorting by date has been most practical for me. Naming files YEAR-MM-DD naturally sorts them oldest to newest, and when the output is reversed it is then newest to oldest. For that reversing, I use busybox's `sort -r`.

2 likes
kaa 1 year ago

Given that you seem to dislike writing HTML, I think that running a single command would be a nicer experience than writing out another a tag and a br every time you write something new.

2 likes
thricegreat 1 year ago

Thanks. But the problem is that I constantly change old posts. And I don't want to change the date.

1 like
zinportal 1 year ago

Have you tried https://github.com/sunainapai/makesite in which you can declare the blog entry’s date?

1 like
thricegreat 1 year ago

>>zinportal That's too much. kaa recommended the API, because it is just an URL.

thricegreat 1 year ago

I thought about this again. The main problem is about the data structure. At the surface, I'm using a data structure similar to a blockchain. Instead of a linked list, I use an array though.

thricegreat 1 year ago

A file content may change. But a (file, title) pair will not. It is ordered by date. I only add a pair, and don' t do another operation.

thricegreat 1 year ago

By this, I don't need to consider another operation. I only need to add. And I can easily add by simply writing "(a href=$file)$date $title(/a)(br)".

thricegreat 1 year ago

However, suppose that I start to sort. Then I need to change the data structure. It will have another operation. Like removing. This will make the problem complex.

3 likes
kaa 1 year ago

Should you try the method of uploading via shell script mentioned at https://neocities.org/api, you can do the same thing using a for loop. Rather than embed shell script in a comment, here's a link: https://kaa.neocities.org/Program/multiup.sh.txt.

2 likes
kaa 1 year ago

Given that it can be done in unix shell script, it can definitely be done in Plan 9 rc script, and probably a bit more elegantly.

2 likes
1 like
thricegreat 1 year ago

Thank you. I made this one.

1 like
3 likes
kaa 1 year ago

Plan 9 rc script. Blessed.

3 likes
3 likes
kaa 1 year ago

The closest you may get to raw txt and images would either be to embed all the text in a tag and add images in their own tags, which you definitely do not want, or to link to them separately from some other HTML, which you probably do not want. The best solution I have found is to have written some shell script and C to generate HTML for pages that it would otherwise be laborious to manually create.

3 likes
thricegreat 1 year ago

Yeah, but that's another layer.

1 like
kaa 1 year ago

More complexity in a system that has too much of it.

I love the idea of writing your own man page! Where can I obtain a copy of KLAEX( 7 ) that is compatible with mandoc?
3 likes
klaex 1 year ago

that would actually be a really cool idea! make it an actual man page. i love the stuff you've put on your website btw and i haven't even had the time to check out everything

2 likes
crossroads was updated.
1 year ago
3 likes
I like your works of art. The structure of this site feels nice.
2 likes
kaa 1 year ago

I implore you to continue your MSPaint journey. I like what you've done so far and think you may make increasingly interesting things through purely digital methodologies. https://vartiwellfinger.neocities.org/joyeux.html

2 likes
crossroads was updated.
1 year ago
2 likes

Website Stats

Last updated 4 months ago
CreatedMar 1, 2022
Site Traffic Stats

Tags

animation music programming photography