From cff6bcc31d59ce9957567cc05c1ed7e364fb40ca Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jul 2017 22:15:03 +0200 Subject: Add rel=me links --- src/responders.js | 9 ++++++++- src/templates/layout.html | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src') 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 @@
+ -- cgit 1.4.1