Skip to content
Snippets Groups Projects
Unverified Commit 74437ea5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use previous blog post index

parent c379354b
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,8 @@ function edit_blog {
return
fi
CURRENT_INDEX=$(cat $CURRENT_BLOG_INDEX)
LAST_BLOG_ENTRY=$BLOG_CONTENT_PATH/${CURRENT_INDEX}_post.rst
PREVIOUS_INDEX=$((CURRENT_INDEX - 1))
LAST_BLOG_ENTRY=$BLOG_CONTENT_PATH/${PREVIOUS_INDEX}_post.rst
if [ ! -f $LAST_BLOG_ENTRY ]; then
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment