diff options
author | Alan Pearce | 2017-07-01 11:00:25 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-01 11:00:25 +0200 |
commit | 248c74916e22f397ff95944ac2596b9e40b302e5 (patch) | |
tree | a66fa1aeefd025a16b492b2b8c8cfed913b93c4d /src | |
parent | e5c2da0871ecbc92e2638dcf7dd4d15f12ddcff0 (diff) | |
download | homestead-248c74916e22f397ff95944ac2596b9e40b302e5.tar.lz homestead-248c74916e22f397ff95944ac2596b9e40b302e5.tar.zst homestead-248c74916e22f397ff95944ac2596b9e40b302e5.zip |
feat: Add photo to marked-up h-chard
Diffstat (limited to 'src')
-rw-r--r-- | src/responders.js | 10 | ||||
-rw-r--r-- | src/templates/layout.html | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/responders.js b/src/responders.js index 7671141..e472579 100644 --- a/src/responders.js +++ b/src/responders.js @@ -76,11 +76,13 @@ module.exports = { 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 @@ module.exports = { .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 @@ module.exports = { .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() ); } diff --git a/src/templates/layout.html b/src/templates/layout.html index 7856917..6e32bb4 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -6,7 +6,10 @@ </head> <body> <header class="h-card"> - <h1 class="p-name">hello world</h1> + <a class="u-url" href="/"> + <img class="u-photo" alt="" src="" /> + <h1 class="p-name">hello world</h1> + </a> </header> <main></main> </body> |