blmayer@~ $ cat meta

content/ meta whoami

About this site

This website is generated using some thicks I find interesting, for example, in the index page the tree is created using a shell command, namely tree. The funny part is that this code is actually part of the HTML file, and the command is run on the build process. For some commands I included it before the output, for fun.

The main thing here is the template.sh script that injects shell commands directly into the file, so I can use simple programs to help creating the content. Do not use it in production, it is not secure, but fine for this simple website that I have control.

This shell script also can be found on my github:

template.sh

I hope you find this interesting, if so take a look at the source code on my GitHub account.


Here's an example:

blmayer@~ $ fortune | cowsay -W 32

 _______________________________ 
/ Now, it we had this sort of   \
| thing:                        |
|                               |
| yield -a for yield to all     |
| traffic                       |
|                               |
| yield -t for yield to trucks  |
|                               |
| yield -f for yield to people  |
| walking (yield foot)          |
|                               |
| yield -d t* for yield on days |
| starting with t               |
|                               |
| ...you'd have a lot of dead   |
| people at intersections, and  |
| traffic jams you wouldn't     |
| believe...                    |
|                               |
| -- Discussion on the          |
\ intuitiveness of commands     /
 ------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||