summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-10 23:44:22 -0500
committerCase Duckworth2022-08-10 23:44:22 -0500
commit6e5c73a6f4a5504c959817a799e4a10bf7bb1e31 (patch)
tree2e7c4377a71448ed17c377595dd4591fd9f22ef5
parentUh, thangs (diff)
downloadht-6e5c73a6f4a5504c959817a799e4a10bf7bb1e31.tar.gz
ht-6e5c73a6f4a5504c959817a799e4a10bf7bb1e31.zip
By default, put static files at root
-rwxr-xr-xht4
1 files changed, 2 insertions, 2 deletions
diff --git a/ht b/ht index 39f86d0..58d6258 100755 --- a/ht +++ b/ht
@@ -78,7 +78,7 @@ configure() {
78 FEED_TEMPLATE="${HT_FEED_TEMPLATE:-./feed.tmpl.xml}" 78 FEED_TEMPLATE="${HT_FEED_TEMPLATE:-./feed.tmpl.xml}"
79 ALLNEW=false 79 ALLNEW=false
80 STATICD="${HT_STATIC_DIR:-./static}" 80 STATICD="${HT_STATIC_DIR:-./static}"
81 STATICOUT="${HT_STATIC_OUTPUT_DIR:-${OUTD}/static}" 81 STATICOUT="${HT_STATIC_OUTPUT_DIR:-${OUTD}}"
82 82
83 INDEXNAME="${HT_INDEX_NAME:-index.html}" 83 INDEXNAME="${HT_INDEX_NAME:-index.html}"
84 if [ -n "$HT_INDEX_ITEM_FORMAT" ]; then 84 if [ -n "$HT_INDEX_ITEM_FORMAT" ]; then
@@ -125,7 +125,7 @@ configure() {
125 esac 125 esac
126 done 126 done
127 127
128 STATICOUT="${HT_STATIC_OUTPUT_DIR:-${OUTD}/static}" 128 STATICOUT="${HT_STATIC_OUTPUT_DIR:-${OUTD}}"
129 INDEX="$WORKD/index.txt" 129 INDEX="$WORKD/index.txt"
130} 130}
131 131