diff options
Diffstat (limited to 'src/actions.js')
-rw-r--r-- | src/actions.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/actions.js b/src/actions.js index 61f4fd8..50b8079 100644 --- a/src/actions.js +++ b/src/actions.js @@ -50,6 +50,14 @@ function post(config, responder, posts) { }; } +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 @@ module.exports = { posts, highlightTheme, post, + tags, tag, serveFiles }; |