aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xblarg3
1 files changed, 2 insertions, 1 deletions
diff --git a/blarg b/blarg
index 67b7e96..6d80dc8 100755
--- a/blarg
+++ b/blarg
@@ -75,7 +75,8 @@ EOF
write_page() {
filename=$1
- target=$(echo "$filename" | sed -r 's|\w+/(.*).md|build/\1.html|')
+ echo $filename
+ target=$(echo "$filename" | sed -r 's|[_[:alnum:]]+(.*).md|build\1.html|')
# year=$(date +"%Y")
created=$(echo "$3" | sed 's/T.*//')
# Reverse date from YYYY-MM-DD to DD-MM-YY