💾 Archived View for gemini.ctrl-c.club › ~de_alchmst › b-logs › ruby › site-gen › 030:crossroads.gmi captured on 2024-05-10 at 14:57:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-05-26)

-=-=-=-=-=-=-

crossroads

Now I can generate all the content that I want, but you must look through it with default browser directory listing, which is not much appealing. That means there is one more scritp for me to write:

gen-crossroads

Basically I have list of directories to create crossroads in (at the time of writing this 'b-logs' and 'data') and I list all their contents. Then I create simple .template file that will create index.html/.gmi in there. This index will list links to all files that are not index.html/.gmi and to previous directory. Then repeat this process recursively on all found directories.

Problem is, that I need list of all files in directory but they are created from templates anly after this template is created. Therefore I added

touch-files.rb

that calls 'touch' command on all files that will be later created. I'm too lazy to learn how to do it in bash, don't judge me.

With this, my site generation scripts are completed. All that's left now is to write home pages and open it to the world to see...

----------------------------

previous: template-generator

b-logs

home

ctrl-c.club