Fix some small stuff

This commit is contained in:
2024-01-23 23:16:27 +08:00
parent 090211fd46
commit a58258034a
4 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
</header>
<ul>
<li><a href="blog-020.html">2024-01-14 &nbsp;&nbsp;Pushing New Boundaries</a></li>
<li><a href="blog-019.html">2023-12-01 &nbsp;&nbsp;Seeking New Paths</a></li>
<li><a href="blog-018.html">2023-10-31 &nbsp;&nbsp;We Need More Motivation</a></li>
<li><a href="blog-017.html">2023-03-29 &nbsp;&nbsp;New Year New Beginnings</a></li>

View File

@ -7,10 +7,11 @@ cd ../blog
POSTNUM=$( ls -l content-* | wc -l )
QUOTENUM=$( ls -l quote-* | wc -l )
if [[ $POSTNUM -gt $QUOTENUM ]];then
CURRNUM=$POSTNUM
NUM=$POSTNUM
else
CURRNUM=$QUOTENUM
NUM=$QUOTENUM
fi
CURRNUM=$(( $NUM -2 ))
# Create post and quote from template
NEWPOSTNAME="content-$(printf %03d "$CURRNUM")"