aboutsummaryrefslogtreecommitdiff
path: root/post-publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'post-publish.sh')
-rwxr-xr-xpost-publish.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/post-publish.sh b/post-publish.sh
new file mode 100755
index 0000000..91e9e74
--- /dev/null
+++ b/post-publish.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+find -L -- . -type f -name '*.hidden.html' | while read -r file; do
+ newfile=$(echo "$file" | sed 's/.hidden.html$/.html/' | sed 's/\/\([^\/]*\)$/\/.\1/')
+ mv "$file" "$newfile"
+done