Use previous blog post index
This commit is contained in:
parent
c379354bbe
commit
74437ea53a
|
@ -91,7 +91,8 @@ function edit_blog {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
CURRENT_INDEX=$(cat $CURRENT_BLOG_INDEX)
|
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
|
if [ ! -f $LAST_BLOG_ENTRY ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue