ref: 96efcddaa6c90f81e1e5ccaf6a49b35d935aec79
dir: /mkindex.rc/
#!/bin/rc cat <<EOF <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style> body{ background-color: black; } a{ color: white; } div{ float: left; text-align: center; padding: 0.25cm; width: 400px; height: 400px; } img{ width: 320px; height: 320px; } </style> </head> <body> EOF for(d) echo '<div><a href="'^$d^'/index.html"><img src="'^$d^'/montage.jpg"/><p>'^$d^'</p></a></div>' cat <<EOF </body> </html> EOF