all repos — archive/homestead @ 529946dc5bdccc2153c97e2040953047319480f4

My future indieweb platform

Add tags listing

Alan Pearce
commit

529946dc5bdccc2153c97e2040953047319480f4

parent

ad56116d0df26b4a6fe7f9cd04a21965d3184af5

1 file changed, 9 insertions(+), 0 deletions(-)

changed files
M src/actions.jssrc/actions.js
@@ -50,6 +50,14 @@ responder(ctx, config, { post });
}; } +function tags(config, responder, tags) { + return async function(ctx, next) { + responder(ctx, config, { + tags: tags.keys() + }); + }; +} + function tag(config, responder, items) { return async function(ctx, next) { const tag = ctx.params.name;
@@ -77,6 +85,7 @@ home,
posts, highlightTheme, post, + tags, tag, serveFiles };