]> git.mdlowis.com Git - projs/mdlowis.com.git/commitdiff
Added code to highlight the current
authorMike D. Lowis <mike.lowis@gentex.com>
Mon, 10 Aug 2015 19:25:22 +0000 (15:25 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Mon, 10 Aug 2015 19:25:22 +0000 (15:25 -0400)
site/articles.html
site/home.html
site/projects.html
site/prototypes.html
templates/page.html
tools/genmenu.sh

index 675948036dae9099d48af363e7ab8688db57b946..32a6729f7b58e006e43d62af7321c3d5632b684e 100644 (file)
@@ -5,6 +5,9 @@
     <link rel="shortcut icon" type="image/x-icon" href="/site/logo.png" />
     <link rel="stylesheet" type="text/css" href="/site/style.css">
     <meta charset="utf-8">
+    <style>
+    #menuitem1 { font-weight: bold; }
+    </style>
 </head>
 <body>
     <div class="header">
 
     <div class="menu">
         <span class="left">
-            <a class="" href="home.html">home</a>
-            <a class="" href="articles.html">articles</a>
-            <a class="" href="projects.html">projects</a>
-            <a class="" href="prototypes.html">prototypes</a>
+            <a id="menuitem0" href="home.html">home</a>
+            <a id="menuitem1" href="articles.html">articles</a>
+            <a id="menuitem2" href="projects.html">projects</a>
+            <a id="menuitem3" href="prototypes.html">prototypes</a>
         </span>
     </div>
 
index fd2eccf17fb77ee73fb1fbf0f09c6a095fe593cd..54a39cb3bae8286a7f22ca86a5db796eae937bf0 100644 (file)
@@ -5,6 +5,9 @@
     <link rel="shortcut icon" type="image/x-icon" href="/site/logo.png" />
     <link rel="stylesheet" type="text/css" href="/site/style.css">
     <meta charset="utf-8">
+    <style>
+    #menuitem0 { font-weight: bold; }
+    </style>
 </head>
 <body>
     <div class="header">
 
     <div class="menu">
         <span class="left">
-            <a class="" href="home.html">home</a>
-            <a class="" href="articles.html">articles</a>
-            <a class="" href="projects.html">projects</a>
-            <a class="" href="prototypes.html">prototypes</a>
+            <a id="menuitem0" href="home.html">home</a>
+            <a id="menuitem1" href="articles.html">articles</a>
+            <a id="menuitem2" href="projects.html">projects</a>
+            <a id="menuitem3" href="prototypes.html">prototypes</a>
         </span>
     </div>
 
index 675948036dae9099d48af363e7ab8688db57b946..2545fb917d3320f1fe9d74c253a0ba93d7cb3c2b 100644 (file)
@@ -5,6 +5,9 @@
     <link rel="shortcut icon" type="image/x-icon" href="/site/logo.png" />
     <link rel="stylesheet" type="text/css" href="/site/style.css">
     <meta charset="utf-8">
+    <style>
+    #menuitem2 { font-weight: bold; }
+    </style>
 </head>
 <body>
     <div class="header">
 
     <div class="menu">
         <span class="left">
-            <a class="" href="home.html">home</a>
-            <a class="" href="articles.html">articles</a>
-            <a class="" href="projects.html">projects</a>
-            <a class="" href="prototypes.html">prototypes</a>
+            <a id="menuitem0" href="home.html">home</a>
+            <a id="menuitem1" href="articles.html">articles</a>
+            <a id="menuitem2" href="projects.html">projects</a>
+            <a id="menuitem3" href="prototypes.html">prototypes</a>
         </span>
     </div>
 
index 675948036dae9099d48af363e7ab8688db57b946..fa0a90a71fa35c0bea866a145b36d8a26a23fcbd 100644 (file)
@@ -5,6 +5,9 @@
     <link rel="shortcut icon" type="image/x-icon" href="/site/logo.png" />
     <link rel="stylesheet" type="text/css" href="/site/style.css">
     <meta charset="utf-8">
+    <style>
+    #menuitem3 { font-weight: bold; }
+    </style>
 </head>
 <body>
     <div class="header">
 
     <div class="menu">
         <span class="left">
-            <a class="" href="home.html">home</a>
-            <a class="" href="articles.html">articles</a>
-            <a class="" href="projects.html">projects</a>
-            <a class="" href="prototypes.html">prototypes</a>
+            <a id="menuitem0" href="home.html">home</a>
+            <a id="menuitem1" href="articles.html">articles</a>
+            <a id="menuitem2" href="projects.html">projects</a>
+            <a id="menuitem3" href="prototypes.html">prototypes</a>
         </span>
     </div>
 
index 980ef200b43503213fbc56ebb5304aaf0b4097ec..4e66a660effe307da1349782d8fb4d777fdd9be9 100644 (file)
@@ -5,6 +5,9 @@
     <link rel="shortcut icon" type="image/x-icon" href="{{LOGO}}" />
     <link rel="stylesheet" type="text/css" href="{{STYLE}}">
     <meta charset="utf-8">
+    <style>
+    #menuitem{{MENUID}} { font-weight: bold; }
+    </style>
 </head>
 <body>
     <div class="header">
index 7df618906edd9db906a9e3e20409cc8790fca069..2cb86b4f8a4e5447e9e6d78500313185b1e20346 100755 (executable)
@@ -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 '<span class="left">'
-for page in "${pagelist[@]}"; do
-    echo "            <a class=\"\" href=\"$page.html\">$page</a>"
+for i in "${!pagelist[@]}"; do
+    echo "            <a id=\"menuitem$i\" href=\"${pagelist[$i]}.html\">${pagelist[$i]}</a>"
 done
 echo '        </span>'
 popd > /dev/null