From 3d70c97f2b6dc79244f067ca95535ac8c4f0f63b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jul 2017 22:41:24 +0200 Subject: Add site description --- config/default.toml | 1 + src/responders.js | 1 + src/templates/layout.html | 1 + test/snapshots/app.test.js.md | 12 ++++++++++++ test/snapshots/app.test.js.snap | Bin 1880 -> 1936 bytes 5 files changed, 15 insertions(+) diff --git a/config/default.toml b/config/default.toml index d2efd7a..b52674c 100644 --- a/config/default.toml +++ b/config/default.toml @@ -2,6 +2,7 @@ port = 3000 [site] +description = "Nobody in particular" [[site.nav]] text = "Home" diff --git a/src/responders.js b/src/responders.js index eeec42a..19f8489 100644 --- a/src/responders.js +++ b/src/responders.js @@ -66,6 +66,7 @@ function layout(config, pageTitle, pageElement) { return hyperfast(templates.layout, { title: title(config.author.name, pageTitle), ".h-card .p-name": config.author.name, + ".h-card .p-note": config.site.description, ".h-card .u-photo": { alt: config.author.name, src: config.author.photo diff --git a/src/templates/layout.html b/src/templates/layout.html index 6035209..284e939 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -11,6 +11,7 @@
site description