Add tags listing
1 file changed, 9 insertions(+), 0 deletions(-)
changed files
M src/actions.js → src/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 };