diff options
author | Alan Pearce | 2017-07-05 22:15:03 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-05 22:15:03 +0200 |
commit | cff6bcc31d59ce9957567cc05c1ed7e364fb40ca (patch) | |
tree | 7de5191c9308860b9e83a271be07e6d85a179f95 /src | |
parent | d01f2aa860b0d5f10dc8e143c4b1b9d420fc8fe0 (diff) | |
download | homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.tar.lz homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.tar.zst homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.zip |
Add rel=me links
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> |