feat(taxon): Show taxonomy term in title
1 file changed, 3 insertions(+), 2 deletions(-)
changed files
M src/responders.js → src/responders.js
@@ -1,6 +1,7 @@ "use strict"; const fs = require("fs"); +const Case = require("case"); const hyperfast = require("hyperfast"); const indent = require("indent-string");@@ -86,12 +87,12 @@ }) ); }, - taxon(ctx, config, taxonItems) { + taxon(ctx, config, term, value, taxonItems) { ctx.type = "html"; ctx.body = layout( config, - null, + Case.title(value), hyperfast(templates.taxon, { ".post": taxonItems.map(renderPostListItem(ctx)) })