about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 21:57:15 +0200
committerAlan Pearce2017-06-18 21:57:15 +0200
commit4ce0f287b64d2d55c9bdd31dee418ba405762273 (patch)
tree2016bb8973eb6429151ed288e0521310a811c023
parente58d6a1718b3358f91fbda10e2291ea4ec01d1e7 (diff)
downloadhomestead-4ce0f287b64d2d55c9bdd31dee418ba405762273.tar.lz
homestead-4ce0f287b64d2d55c9bdd31dee418ba405762273.tar.zst
homestead-4ce0f287b64d2d55c9bdd31dee418ba405762273.zip
rename 'tag' view to 'term'
-rw-r--r--src/index.js3
-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