Fixed comments
This commit is contained in:
parent
196c6ddc64
commit
db1f2111ec
1 changed files with 2 additions and 2 deletions
4
bb.sh
4
bb.sh
|
@ -380,7 +380,7 @@ all_posts() {
|
||||||
rm "$contentfile"
|
rm "$contentfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate the index.html with the content of the latest 10 posts
|
# Generate the index.html with the content of the latest posts
|
||||||
rebuild_index() {
|
rebuild_index() {
|
||||||
echo -n "Rebuilding the index "
|
echo -n "Rebuilding the index "
|
||||||
newindexfile="$index_file.$RANDOM"
|
newindexfile="$index_file.$RANDOM"
|
||||||
|
@ -390,7 +390,7 @@ rebuild_index() {
|
||||||
contentfile="$newindexfile.content"
|
contentfile="$newindexfile.content"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create the content file, maximum 10 entries
|
# Create the content file
|
||||||
n=0
|
n=0
|
||||||
for i in $(ls -t *.html); do # sort by date, newest first
|
for i in $(ls -t *.html); do # sort by date, newest first
|
||||||
if [ "$i" == "$index_file" ] || [ "$i" == "$archive_index" ]; then continue; fi
|
if [ "$i" == "$index_file" ] || [ "$i" == "$archive_index" ]; then continue; fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue