Compare commits
4 Commits
e69fad1184
...
77c5187294
Author | SHA1 | Date | |
---|---|---|---|
77c5187294 | |||
ab3dcd56c7 | |||
f9736ae49a | |||
f92e5e9f17 |
2
Site
2
Site
Submodule Site updated: 20beb7025c...a5eb22a446
2
blog
2
blog
Submodule blog updated: 8623acba92...9d59b61ca1
@@ -37,8 +37,8 @@ function get_last_5_pages (){
|
|||||||
VAR=( ${pages[@]} )
|
VAR=( ${pages[@]} )
|
||||||
else
|
else
|
||||||
## Otherwise, itterate through the last 5 blog posts
|
## Otherwise, itterate through the last 5 blog posts
|
||||||
INDEX=-5
|
INDEX=0
|
||||||
while [[ $INDEX -ne 0 ]]; do
|
while [[ $INDEX -ne 5 ]]; do
|
||||||
VAR+=( "${pages[$INDEX]}" )
|
VAR+=( "${pages[$INDEX]}" )
|
||||||
## Increment the index so that we get closer and closer to end of the list
|
## Increment the index so that we get closer and closer to end of the list
|
||||||
((INDEX++))
|
((INDEX++))
|
||||||
|
@@ -39,6 +39,7 @@ echo -e $TITLES
|
|||||||
`
|
`
|
||||||
|
|
||||||
*Date:* `date +'%Y/%m/%d'`
|
*Date:* `date +'%Y/%m/%d'`
|
||||||
|
|
||||||
*Author:* Tristan Ancelet
|
*Author:* Tristan Ancelet
|
||||||
|
|
||||||
= $PAGE_TITLE =
|
= $PAGE_TITLE =
|
||||||
|
@@ -30,7 +30,7 @@ while [[ $# -ne 0 ]]; do
|
|||||||
FILENAME="${2:?"main.sh : Filename was not provided"}"
|
FILENAME="${2:?"main.sh : Filename was not provided"}"
|
||||||
generate_blog_post "$TITLE" "$DATESTAMP-$FILENAME"
|
generate_blog_post "$TITLE" "$DATESTAMP-$FILENAME"
|
||||||
sync
|
sync
|
||||||
generate_index
|
generate_hook
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user