~sky/blog

bc8f5cd7054867ff915330a667b2b760c0ed30bc — Skyler Marks 2 years ago f2154b3 main
Fix link ordering to put 'index.html' and 'about.html' last.
1 files changed, 7 insertions(+), 3 deletions(-)

M up-blog
M up-blog => up-blog +7 -3
@@ 39,7 39,7 @@ cd $BLOG_DIR;
if [ -z "$1" ]; then
	printf "No args, running update script\n"
else
	NAME=$(date +'%F'):_$1
	NAME=$(date +'%F'):_${1// /_}
	printf "$TEMP1" > $BLOG_DIR/input/$NAME.head;
	nvim +15 $BLOG_DIR/input/$NAME.head
	printf "$TEMP2" > $BLOG_DIR/input/$NAME.html;


@@ 54,7 54,11 @@ do
	HEADER=$TITLE.head
	TITLE=${TITLE//_/ };
	LINKS=$(cat ../templates/links);
	printf "<li><a href = "https://blog.skylermarks.com/$i">$TITLE</a></li>\n" >> ../templates/links;
	if [ "$i" = "index.html" ] || [ "$i" = "about.html" ]; then
		printf "$LINKS<li><a href = "https://blog.skylermarks.com/$i">$TITLE</a></li>\n" > ../templates/links;
	else
		printf "<li><a href = "https://blog.skylermarks.com/$i">$TITLE</a></li>\n$LINKS" > ../templates/links;
	fi
done;
for i in *.html;
do


@@ 66,4 70,4 @@ done;

cd $BLOG_DIR
cd output
scp ./* d2evs.net:/var/www/blog.skylermarks.com/
scp -r ./* d2evs.net:/var/www/blog.skylermarks.com/