mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
11 lines
248 B
Bash
Executable file
11 lines
248 B
Bash
Executable file
#!/bin/bash
|
|
|
|
harp compile public public
|
|
|
|
for FILENAME in public/posts/*.html public/projects/*.html; do
|
|
[[ "$FILENAME" = "index.html" ]] && continue
|
|
|
|
DIRNAME="${FILENAME%.html}"
|
|
mkdir -p "$DIRNAME"
|
|
mv "$FILENAME" "$DIRNAME/index.html"
|
|
done
|