all repos — archive/homestead @ 3d70c97f2b6dc79244f067ca95535ac8c4f0f63b

My future indieweb platform

Add site description

Alan Pearce
commit

3d70c97f2b6dc79244f067ca95535ac8c4f0f63b

parent

cff6bcc31d59ce9957567cc05c1ed7e364fb40ca

M config/default.tomlconfig/default.toml
@@ -2,6 +2,7 @@ [server]
port = 3000 [site] +description = "Nobody in particular" [[site.nav]] text = "Home"
M src/responders.jssrc/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
M src/templates/layout.htmlsrc/templates/layout.html
@@ -11,6 +11,7 @@ <a class="u-url" href="/">
<img class="u-photo" alt="" src="" /> <h1 class="p-name">hello world</h1> </a> + <p class="p-note">site description</p> <nav> <ul> <li><a href="/">test link</a></li>
M test/snapshots/app.test.js.mdtest/snapshots/app.test.js.md
@@ -15,6 +15,9 @@ properties: {
name: [ 'John Doe', ], + note: [ + 'Nobody in particular', + ], photo: [ '/static/johndoe.jpg', ],
@@ -96,6 +99,9 @@ {
properties: { name: [ 'John Doe', + ], + note: [ + 'Nobody in particular', ], photo: [ '/static/johndoe.jpg',
@@ -169,6 +175,9 @@ properties: {
name: [ 'John Doe', ], + note: [ + 'Nobody in particular', + ], photo: [ '/static/johndoe.jpg', ],
@@ -250,6 +259,9 @@ {
properties: { name: [ 'John Doe', + ], + note: [ + 'Nobody in particular', ], photo: [ '/static/johndoe.jpg',