summary refs log tree commit diff stats
path: root/src/responders.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/responders.js')
-rw-r--r--src/responders.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/responders.js b/src/responders.js
index f29b2b0..eeec42a 100644
--- a/src/responders.js
+++ b/src/responders.js
@@ -76,7 +76,14 @@ function layout(config, pageTitle, pageElement) {
         _text: l.text
       }
     })),
-    "body > main": pageElement.outerHTML
+    "body > main": pageElement.outerHTML,
+    ".contact-list li": config.author.contact.map(c => ({
+      a: {
+        class: c.url.startsWith("mailto") ? "u-email" : "u-url",
+        href: c.url,
+        _text: c.text
+      }
+    }))
   }).outerHTML.trim();
 }