diff --git a/.info b/.info
new file mode 100644
index 0000000..e436368
--- /dev/null
+++ b/.info
@@ -0,0 +1,10 @@
+facts.txt
+ facts about zane schaffer
+contact.txt
+ zane schaffer's contact info
+about.txt
+ general information about zane schaffer
+posts
+ zane schaffer's blog posts
+images
+ zane schaffer's images
diff --git a/gen b/gen
new file mode 100755
index 0000000..3c57e90
--- /dev/null
+++ b/gen
@@ -0,0 +1,25 @@
+#!/usr/bin/env sh
+
+BLOG_DIR=${BLOG_DIR:-$PWD}
+BLOG_TITLE="zane.town"
+BLOG_URL="https://$BLOG_TITLE"
+POSTS_DIR="$BLOG_DIR/posts"
+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
+
+if [ -f "$IMAGES_DIR/generate.sh" ]; then
+ cd $IMAGES_DIR && sh "$IMAGES_DIR/generate.sh"
+else
+ echo "images/generate.sh not found"
+fi
+
+if [ -f "$POSTS_DIR/generate.sh" ]; then
+ cd $POSTS_DIR && sh "$POSTS_DIR/generate.sh"
+else
+ echo "posts/generate.sh not found"
+fi
+
+echo "Done!"
diff --git a/generate.sh b/generate.sh
deleted file mode 100755
index 1c49ea1..0000000
--- a/generate.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env sh
-DIR=$PWD
-POSTS="$DIR/posts"
-IMAGES="$DIR/images"
-
-tree --dirsfirst -C -L 1 -I generate.sh -I dotfiles -I index.html -I tmp -H https://zane.town -T zane.town > index.html
-
-if [ -f "$IMAGES/generate.sh" ]; then
- cd $IMAGES && sh "$IMAGES/generate.sh"
-else
- echo "images/generate.sh not found"
-fi
-
-if [ -f "$POSTS/generate.sh" ]; then
- cd $POSTS && sh "$POSTS/generate.sh"
-else
- echo "posts/generate.sh not found"
-fi
-
-echo "Done!"
diff --git a/index.html b/index.html
index 1b75ce0..f162a3b 100755
--- a/index.html
+++ b/index.html
@@ -17,14 +17,15 @@
https://zane.town
├── cv
├── git
- ├── images
- ├── posts
- ├── about.txt
- ├── contact.txt
- └── facts.txt
+ ├── images
+ ├── posts
+ ├── scripts
+ ├── about.txt
+ ├── contact.txt
+ └── facts.txt
-4 directories, 3 files +5 directories, 3 files
+
+ https://zane.town/scripts
+ └── to
+
+ +0 directories, 1 file + +
+diff --git a/scripts/.info b/scripts/.info new file mode 100644 index 0000000..c6ef0bf --- /dev/null +++ b/scripts/.info @@ -0,0 +1,2 @@ +to + todo list manager diff --git a/scripts/generate.sh b/scripts/generate.sh new file mode 100755 index 0000000..f769eb8 --- /dev/null +++ b/scripts/generate.sh @@ -0,0 +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 diff --git a/scripts/index.html b/scripts/index.html new file mode 100644 index 0000000..e2f8199 --- /dev/null +++ b/scripts/index.html @@ -0,0 +1,25 @@ + + +
+ + + +
+ + +
+