From a3c6786c02bba3c91a5d57a5bad543f8267c0226 Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Mon, 10 Aug 2015 15:25:22 -0400 Subject: [PATCH] Added code to highlight the current --- site/articles.html | 11 +++++++---- site/home.html | 11 +++++++---- site/projects.html | 11 +++++++---- site/prototypes.html | 11 +++++++---- templates/page.html | 3 +++ tools/genmenu.sh | 4 ++-- 6 files changed, 33 insertions(+), 18 deletions(-) diff --git a/site/articles.html b/site/articles.html index 6759480..32a6729 100644 --- a/site/articles.html +++ b/site/articles.html @@ -5,6 +5,9 @@ +
@@ -15,10 +18,10 @@ diff --git a/site/home.html b/site/home.html index fd2eccf..54a39cb 100644 --- a/site/home.html +++ b/site/home.html @@ -5,6 +5,9 @@ +
@@ -15,10 +18,10 @@ diff --git a/site/projects.html b/site/projects.html index 6759480..2545fb9 100644 --- a/site/projects.html +++ b/site/projects.html @@ -5,6 +5,9 @@ +
@@ -15,10 +18,10 @@ diff --git a/site/prototypes.html b/site/prototypes.html index 6759480..fa0a90a 100644 --- a/site/prototypes.html +++ b/site/prototypes.html @@ -5,6 +5,9 @@ +
@@ -15,10 +18,10 @@ diff --git a/templates/page.html b/templates/page.html index 980ef20..4e66a66 100644 --- a/templates/page.html +++ b/templates/page.html @@ -5,6 +5,9 @@ +
diff --git a/tools/genmenu.sh b/tools/genmenu.sh index 7df6189..2cb86b4 100755 --- a/tools/genmenu.sh +++ b/tools/genmenu.sh @@ -4,8 +4,8 @@ pushd pages/ > /dev/null pagelist=(`grep MENUID *.md | sed -e's/\.md:MENUID//' | awk '{print $2, $1}' | sort | cut -d' ' -f2`) echo '' -for page in "${pagelist[@]}"; do - echo " $page" +for i in "${!pagelist[@]}"; do + echo " ${pagelist[$i]}" done echo ' ' popd > /dev/null -- 2.52.0