diff options
-rw-r--r-- | config/default.toml | 8 | ||||
-rw-r--r-- | src/responders.js | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/config/default.toml b/config/default.toml index bb07508..0a55027 100644 --- a/config/default.toml +++ b/config/default.toml @@ -3,14 +3,14 @@ port = 3000 [site] -[site.author] -name = "John Doe" -photo = "/static/johndoe.jpg" - [[site.nav]] text = "Home" url = "/" +[author] +name = "John Doe" +photo = "/static/johndoe.jpg" + [posts] folder = "./posts" diff --git a/src/responders.js b/src/responders.js index 75850f8..f29b2b0 100644 --- a/src/responders.js +++ b/src/responders.js @@ -64,11 +64,11 @@ const renderPost = ctx => post => { function layout(config, pageTitle, pageElement) { return hyperfast(templates.layout, { - title: title(config.site.author.name, pageTitle), - ".h-card .p-name": config.site.author.name, + title: title(config.author.name, pageTitle), + ".h-card .p-name": config.author.name, ".h-card .u-photo": { - alt: config.site.author.name, - src: config.site.author.photo + alt: config.author.name, + src: config.author.photo }, "header nav li": config.site.nav.map(l => ({ a: { |