all repos โ€” archive/homestead @ 529946dc5bdccc2153c97e2040953047319480f4

My future indieweb platform

Add tags listing

Alan Pearce
commit

529946dc5bdccc2153c97e2040953047319480f4

parent

ad56116d0df26b4a6fe7f9cd04a21965d3184af5

1 file changed, 86 insertions(+), 1 deletion(-)

changed files
M test/snapshots/app.test.js.md โ†’ test/snapshots/app.test.js.md
@@ -332,4 +332,89 @@ stylesheet: [
'/css/code.css', ], }, - } + + +## tag + +> should contain relevant microformats data + + { + items: [ + { + properties: { + name: [ + 'John Doe', + ], + note: [ + 'Nobody in particular', + ], + photo: [ + '/static/johndoe.jpg', + ], + url: [ + '/', + ], + }, + type: [ + 'h-card', + ], + }, + { + children: [ + { + properties: { + name: [ + 'This is a test', + ], + published: [ + '2017-01-01T00:00:00.000Z', + ], + url: [ + '/post/testfile', + ], + }, + type: [ + 'h-entry', + ], + value: 'This is a test Sunday, January 1, 2017', + }, + ], + properties: { + name: [ + 'A ยท John Doe', + ], + }, + type: [ + 'h-feed', + ], + }, + ], + 'rel-urls': { + '/css/code.css': { + rels: [ + 'stylesheet', + ], + }, + 'https://twitter.com/johndoe': { + rels: [ + 'me', + ], + text: 'Twitter', + }, + 'mailto:johndoe@johndoe.org': { + rels: [ + 'me', + ], + text: 'johndoe@johndoe.org', + }, + }, + rels: { + me: [ + 'mailto:johndoe@johndoe.org', + 'https://twitter.com/johndoe', + ], + stylesheet: [ + '/css/code.css', + ], + }, + }