Compare commits

1 Commits

Author SHA1 Message Date
a58258034a Fix some small stuff 2024-01-23 23:16:27 +08:00
4 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
</header> </header>
<ul> <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-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-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> <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 ) POSTNUM=$( ls -l content-* | wc -l )
QUOTENUM=$( ls -l quote-* | wc -l ) QUOTENUM=$( ls -l quote-* | wc -l )
if [[ $POSTNUM -gt $QUOTENUM ]];then if [[ $POSTNUM -gt $QUOTENUM ]];then
CURRNUM=$POSTNUM NUM=$POSTNUM
else else
CURRNUM=$QUOTENUM NUM=$QUOTENUM
fi fi
CURRNUM=$(( $NUM -2 ))
# Create post and quote from template # Create post and quote from template
NEWPOSTNAME="content-$(printf %03d "$CURRNUM")" NEWPOSTNAME="content-$(printf %03d "$CURRNUM")"