Regen html from tree(1) fork

This commit is contained in:
Zane Schaffer 2022-10-25 09:59:26 -07:00
parent 30c430adc0
commit 6b41dccff3
9 changed files with 55 additions and 58 deletions

9
facts.txt Executable file
View File

@ -0,0 +1,9 @@
I live in Seattle, Washington with Xinrui
I have a cat named Cleo
I fiddle with instruments and make music
I love biking and riding with my friends
No more ear ache!

Binary file not shown.

2
gen
View File

@ -8,7 +8,7 @@ IMAGES_DIR="$BLOG_DIR/images"
TREE_FLAGS="--dirsfirst --info -C -L 1"
TREE_IGNORES="-I gen -I index.html"
tree $TREE_FLAGS $TREE_IGNORES -H $BLOG_URL -T $BLOG_TITLE > index.html
/usr/local/bin/tree $TREE_FLAGS $TREE_IGNORES -H $BLOG_URL -T $BLOG_TITLE > index.html
if [ -f "$IMAGES_DIR/generate.sh" ]; then
cd $IMAGES_DIR && sh "$IMAGES_DIR/generate.sh"

View File

@ -1,2 +1,2 @@
#!/bin/sh
tree --dirsfirst -C -L 1 -I generate.sh -I favicon.svg -I logo.png -I style.css -I index.html -I tags -H "https://zane.town/images" -T "zane.town/images" > index.html
/usr/local/bin/tree --dirsfirst -C -L 1 -I generate.sh -I favicon.svg -I logo.png -I style.css -I index.html -I tags -H "https://zane.town/images" -T "zane.town/images" > index.html

View File

@ -1,19 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark light" />
<link href="favicon.svg" rel="icon" type="image/svg+xml"/>
<title>zane.town/images</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
</head>
<html lang="en">
<meta charset="utf-8">
<meta name="color-scheme" content="dark light">
<title>zane.town/images</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
<body>
<p>
<p>
<a href="https://zane.town/images">https://zane.town/images</a><br>
├── <a href="https://zane.town/images/anotherflower.webp">anotherflower.webp</a><br>
├── <a href="https://zane.town/images/cleo.jpeg">cleo.jpeg</a><br>
@ -22,10 +19,9 @@
├── <a href="https://zane.town/images/model2.webp">model2.webp</a><br>
├── <a href="https://zane.town/images/trippyflower.webp">trippyflower.webp</a><br>
└── <a href="https://zane.town/images/workingoutisfun.webp">workingoutisfun.webp</a><br>
<br><br><p>
<br>
0 directories, 7 files
0 directories, 7 files
</p>
</p>
</body>
</html>

View File

@ -1,19 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark light" />
<link href="favicon.svg" rel="icon" type="image/svg+xml"/>
<title>zane.town</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
</head>
<html lang="en">
<meta charset="utf-8">
<meta name="color-scheme" content="dark light">
<title>zane.town</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
<body>
<p>
<p>
<a href="https://zane.town">https://zane.town</a><br>
├── <a href="https://zane.town/cv/">cv</a><br>
├── <a href="https://zane.town/git/">git</a><br>
@ -23,10 +20,9 @@
├── <a title="general information about zane schaffer" href="https://zane.town/about.txt">about.txt</a><br>
├── <a title="zane schaffer's contact info" href="https://zane.town/contact.txt">contact.txt</a><br>
└── <a title="facts about zane schaffer" href="https://zane.town/facts.txt">facts.txt</a><br>
<br><br><p>
<br>
5 directories, 3 files
5 directories, 3 files
</p>
</p>
</body>
</html>

View File

@ -1,2 +1,2 @@
#!/bin/sh
tree --dirsfirst -C -L 1 -I generate.sh -I favicon.svg -I logo.png -I style.css -I index.html -I tags -H "https://zane.town/posts" -T "zane.town/posts" > index.html
/usr/local/bin/tree --dirsfirst -C -L 1 -I generate.sh -I favicon.svg -I logo.png -I style.css -I index.html -I tags -H "https://zane.town/posts" -T "zane.town/posts" > index.html

View File

@ -1,27 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark light" />
<link href="favicon.svg" rel="icon" type="image/svg+xml"/>
<title>zane.town/posts</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
</head>
<html lang="en">
<meta charset="utf-8">
<meta name="color-scheme" content="dark light">
<title>zane.town/posts</title>
<style type="text/css">
body {font-family: monospace;}
p { margin:0px; padding: 0px;}
a { text-decoration: none; color: unset; }
a:hover { color: #888; }
</style>
<body>
<p>
<p>
<a href="https://zane.town/posts">https://zane.town/posts</a><br>
├── <a href="https://zane.town/posts/a-new-site.txt">a-new-site.txt</a><br>
├── <a href="https://zane.town/posts/setup-time.txt">setup-time.txt</a><br>
└── <a href="https://zane.town/posts/the-smokey-skies.txt">the-smokey-skies.txt</a><br>
<br><br><p>
<br>
0 directories, 3 files
0 directories, 3 files
</p>
</p>
</body>
</html>

View File

@ -1,2 +1,2 @@
#!/bin/sh
tree --dirsfirst --info -C -L 1 -I generate.sh -I index.html -H "https://zane.town/scripts" -T "zane.town/scripts" > index.html
/usr/local/bin/tree --dirsfirst --info -C -L 1 -I generate.sh -I index.html -H "https://zane.town/scripts" -T "zane.town/scripts" > index.html