all repos — archive/homestead @ d01f2aa860b0d5f10dc8e143c4b1b9d420fc8fe0

My future indieweb platform

Move author config to top-level

Alan Pearce
commit

d01f2aa860b0d5f10dc8e143c4b1b9d420fc8fe0

parent

9d601e206bdad2c384f2328a14fea8c0f5428ca9

2 files changed, 8 insertions(+), 8 deletions(-)

changed files
M config/default.tomlconfig/default.toml
@@ -3,13 +3,13 @@ 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"
M src/responders.jssrc/responders.js
@@ -64,11 +64,11 @@ };
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: {