diff options
author | Neil Ray <ray@tilde.institute> | 2020-08-27 18:37:21 -0400 |
---|---|---|
committer | Neil Ray <ray@tilde.institute> | 2020-08-27 18:37:21 -0400 |
commit | 6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4 (patch) | |
tree | a5b9d7f7f3784874b4f39f0c1671e49d055144a0 | |
parent | e4938e71054ecf26fdd0f4d8c18587285a06f5cc (diff) | |
download | prep_html-6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4.tar.gz |
stable, end of July 2020, works well
-rw-r--r-- | tinman3.trans.compress.png | bin | 0 -> 30433 bytes | |||
-rw-r--r-- | top.html | 6 | ||||
-rw-r--r-- | top.tmpl | 19 | ||||
-rwxr-xr-x | update.sh | 11 |
4 files changed, 29 insertions, 7 deletions
diff --git a/tinman3.trans.compress.png b/tinman3.trans.compress.png new file mode 100644 index 0000000..660ec2f --- /dev/null +++ b/tinman3.trans.compress.png Binary files differdiff --git a/top.html b/top.html index 2a2c24f..3139d7a 100644 --- a/top.html +++ b/top.html @@ -1,10 +1,10 @@ <html> <head> - <title>Heartless and clueless</title> + <title>Heartless Hacker</title> </head> <style> - body {background-color: ivory;} + body {background-color: MistyRose;} h1 {color: red;} p {color: blue;} </style> @@ -12,7 +12,7 @@ <body> <br> -<img src=tinman3.png alt="If I only had a heart"> +<img src=tinman3.trans.cmpress.png alt="If I only had a heart"> <br><br> <pre> diff --git a/top.tmpl b/top.tmpl new file mode 100644 index 0000000..e92d738 --- /dev/null +++ b/top.tmpl @@ -0,0 +1,19 @@ +<html> +<head> + <title>Heartless Hacker</title> +</head> + +<style> + body {background-color: MistyRose;} + h1 {color: red;} + p {color: blue;} +</style> + +<body> + +<br> +<img src=TINMAN alt="If I only had a heart"> +<br><br> + +<pre> +Projects: diff --git a/update.sh b/update.sh index 3afa373..1a48a1a 100755 --- a/update.sh +++ b/update.sh @@ -1,10 +1,13 @@ -#!/bin/sh +#!/usr/local/bin/dash # concatenate html files & .plan then write to http root -tin_img=tinman3.png +tin_img=tinman3.trans.cmpress.png cd ~/prep_html -cat top.html ~/.project mid.html ~/.plan end.html > ~/public_html/index.html -if [ -e ~/public_html/$tin_img ]; then cp $tin_img ~/public_html; fi +sed "s/TINMAN/$tin_img/g" top.tmpl > top.html +sed "s/^Status:/Status (`date +%Y-%m-%d`):/" ~/.plan > plan.cooked +cat top.html ~/.project mid.html plan.cooked end.html > ~/public_html/index.html +if [ ! -e ~/public_html/$tin_img ]; then cp $tin_img ~/public_html; fi +rm plan.cooked |