Compare commits
27 Commits
e69fad1184
...
master
Author | SHA1 | Date | |
---|---|---|---|
b267154316 | |||
adcda2f37d | |||
3ed298592f | |||
9009885f53 | |||
0acac4dc55 | |||
f07e6fae57 | |||
22326e7000 | |||
07a1cddc9f | |||
33edb5def8 | |||
722c02db7a | |||
cb7bc1d4c9 | |||
4a421ac4bd | |||
f388992436 | |||
108721eb0c | |||
e012077ecd | |||
b9b71f5f02 | |||
a507ef5e66 | |||
f46aacc5b7 | |||
546dc17057 | |||
778bf9410a | |||
5675c3b814 | |||
f59bef3428 | |||
2f51c2dd9d | |||
77c5187294 | |||
ab3dcd56c7 | |||
f9736ae49a | |||
f92e5e9f17 |
@@ -5,3 +5,5 @@ Hello all, this is a project I put togethor for my Capstone project (not the pro
|
||||
## Function
|
||||
The core of this project depends on you having VimWiki installed. The second depends on you having bash installed as a shell.
|
||||
|
||||
## What it does
|
||||
This simply automates the creation of new wiki posts and updating the index page.
|
||||
|
2
Site
2
Site
Submodule Site updated: 20beb7025c...d25ee5b17d
2
blog
2
blog
Submodule blog updated: 8623acba92...8f59dd1f7b
@@ -37,8 +37,8 @@ function get_last_5_pages (){
|
||||
VAR=( ${pages[@]} )
|
||||
else
|
||||
## Otherwise, itterate through the last 5 blog posts
|
||||
INDEX=-5
|
||||
while [[ $INDEX -ne 0 ]]; do
|
||||
INDEX=0
|
||||
while [[ $INDEX -ne 5 ]]; do
|
||||
VAR+=( "${pages[$INDEX]}" )
|
||||
## Increment the index so that we get closer and closer to end of the list
|
||||
((INDEX++))
|
||||
|
@@ -39,6 +39,7 @@ echo -e $TITLES
|
||||
`
|
||||
|
||||
*Date:* `date +'%Y/%m/%d'`
|
||||
|
||||
*Author:* Tristan Ancelet
|
||||
|
||||
= $PAGE_TITLE =
|
||||
|
@@ -30,7 +30,7 @@ while [[ $# -ne 0 ]]; do
|
||||
FILENAME="${2:?"main.sh : Filename was not provided"}"
|
||||
generate_blog_post "$TITLE" "$DATESTAMP-$FILENAME"
|
||||
sync
|
||||
generate_index
|
||||
generate_hook
|
||||
break
|
||||
;;
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
## If user is not running this in the root of the project dir
|
||||
if [[ ! -d utils ]]; then
|
||||
## Change directory to project dir
|
||||
cd `dirname $1`
|
||||
cd `dirname $0`
|
||||
cd ..
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user