Compare commits
No commits in common. "77c51872942f79dfed1524a9b468c779b8fa8946" and "e69fad118408753309d05869254bc4cc9de051bd" have entirely different histories.
77c5187294
...
e69fad1184
2
Site
2
Site
@ -1 +1 @@
|
|||||||
Subproject commit a5eb22a44695378c63f1ed1f4e04fc614f601170
|
Subproject commit 20beb7025c36b6f0f488f501603a703b85dec7a3
|
2
blog
2
blog
@ -1 +1 @@
|
|||||||
Subproject commit 9d59b61ca1e5f2cbd15ea9f7249af577f93236ec
|
Subproject commit 8623acba928516172ac03e2b7fd8beb6be151a01
|
@ -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=0
|
INDEX=-5
|
||||||
while [[ $INDEX -ne 5 ]]; do
|
while [[ $INDEX -ne 0 ]]; 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,7 +39,6 @@ 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_hook
|
generate_index
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user