diff options
-rw-r--r-- | src/index.js | 3 | ||||
-rw-r--r-- | src/views/term.njk (renamed from src/views/tag.njk) | 0 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 52bdff0..ae277d6 100644 --- a/src/index.js +++ b/src/index.js @@ -46,7 +46,8 @@ for (let [term, items] of taxonomies) { 404, `Could not find ${term} ${value}` ) - await ctx.render('tag', { + await ctx.render('term', { + term: term, [term]: value, posts: items.get(ctx.params.value) }) diff --git a/src/views/tag.njk b/src/views/term.njk index 7ff9871..7ff9871 100644 --- a/src/views/tag.njk +++ b/src/views/term.njk |