diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/responders.js | 9 | ||||
-rw-r--r-- | src/templates/layout.html | 7 |
2 files changed, 15 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(); } diff --git a/src/templates/layout.html b/src/templates/layout.html index 86eec59..6035209 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -18,5 +18,12 @@ </nav> </header> <main></main> + <footer> + <ul class="contact-list"> + <li> + <a rel="me" href="mailto:dog@johndoe.org">dog</a> + </li> + </ul> + </footer> </body> </html> |