ignore md/html files starting in __
consider them as drafts and not to be published
This commit is contained in:
parent
8b6f300189
commit
0101078c5e
2
rivet.sh
2
rivet.sh
@ -169,7 +169,7 @@ cp -r "$srcdir"/* "$destdir"
|
||||
rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html
|
||||
|
||||
# Generate an ordered (by open time) file list
|
||||
find "$srcdir" -type f -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist"
|
||||
find "$srcdir" -type f -not -iname "__*" -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist"
|
||||
|
||||
sed -e "s,^\/*[^\/]*\/,$destdir/," "$objlist" > "$tmpsed"
|
||||
mv "$tmpsed" "$objlist"
|
||||
|
Loading…
Reference in New Issue
Block a user