summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/responders.js6
-rw-r--r--src/templates/layout.html5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/responders.js b/src/responders.js
index 867310a..48d1949 100644
--- a/src/responders.js
+++ b/src/responders.js
@@ -70,6 +70,12 @@ function layout(config, pageTitle, pageElement) {
       alt: config.site.author.name,
       src: config.site.author.photo
     },
+    "header nav li": config.site.nav.map(l => ({
+      a: {
+        href: l.url,
+        _text: l.text
+      }
+    })),
     "body > main": pageElement.outerHTML
   }).outerHTML.trim();
 }
diff --git a/src/templates/layout.html b/src/templates/layout.html
index 6e32bb4..65fdede 100644
--- a/src/templates/layout.html
+++ b/src/templates/layout.html
@@ -10,6 +10,11 @@
         <img class="u-photo" alt="" src="" />
         <h1 class="p-name">hello world</h1>
       </a>
+      <nav>
+        <ul>
+          <li><a href="/">test link</a></li>
+        </ul>
+      </nav>
     </header>
     <main></main>
   </body>