Implement JSDoc and embedding into our navbar without obvious CSS conflicts
[ndcode_site.git] / navbar.jst
index 1a1b907..cb62ae6 100644 (file)
@@ -9,7 +9,18 @@ return async (env, head, body) => {
 
   await page(
     env,
-    head,
+    // head
+    async _out => {
+      title {
+        _out.push(
+          globals.site_title +
+          ": " +
+          (globals.page_to_title[env.parsed_url.pathname] || env.parsed_url.pathname)
+        )
+      }
+
+      await head(_out)
+    },
     // body
     async _out => {
       div(style="padding-left: calc(100vw - 100%);") {
@@ -91,7 +102,7 @@ return async (env, head, body) => {
         div.container { //-fluid") {
           div(style="height: 16px;") {}
           a(rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/") {
-            img(alt="Creative Commons License" style="border-width:0" src="images/by-sa_3.0_88x31.png") {}
+            img(alt="Creative Commons License" style="border-width:0" src="/images/by-sa_3.0_88x31.png") {}
           }
           p {
             'This work is licensed under a '