feat: Add photo to marked-up h-chard
1 file changed, 6 insertions(+), 4 deletions(-)
changed files
M src/responders.js → src/responders.js
@@ -76,11 +76,13 @@ ctx.body = prependDoctype( templates .layout() .pipe(rheo()) + .attribute(".u-photo", "alt", config.site.author.name) + .attribute(".u-photo", "src", config.site.author.photo) .outer("main", showPage("home")) .inner(".posts", function(postsTemplate) { return postsStream.pipe(postsTemplate.map(renderPostListItem(ctx))); }) - .pipe(setTitle(config.site.author)) + .pipe(setTitle(config.site.author.name)) .render() ); },@@ -94,7 +96,7 @@ .pipe(rheo()) .outer("main", showPage("post")) .inner("article h1", rheo(post.data.get("title"))) .outer("article main", rheo(post.body)) - .pipe(setTitle(config.site.author, post.data.get("title"))) + .pipe(setTitle(config.site.author.name, post.data.get("title"))) .render() ); },@@ -106,11 +108,11 @@ templates .layout() .pipe(rheo()) .outer("main", showPage("taxon")) - .inner("h1", rheo(config.site.author)) + .inner("h1", rheo(config.site.author.name)) .inner(".posts", function(postsTemplate) { return taxonItems.pipe(postsTemplate.map(renderPostListItem(ctx))); }) - .pipe(setTitle(config.site.author)) + .pipe(setTitle(config.site.author.name)) .render() ); }