diff options
author | Alan Pearce | 2017-07-01 13:30:57 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-01 13:30:57 +0200 |
commit | ab3c5ffb57980359a186936aa6fc2894f58eb625 (patch) | |
tree | 1901135c0419fe1e70a7ab86fde330f5f8bc9a23 /src/responders.js | |
parent | e4e26ceca7bfe60185082748c54f7ccd30746350 (diff) | |
download | homestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.tar.lz homestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.tar.zst homestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.zip |
feat(taxon): Show taxonomy term in title
Diffstat (limited to 'src/responders.js')
-rw-r--r-- | src/responders.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/responders.js b/src/responders.js index b9758f3..e285018 100644 --- a/src/responders.js +++ b/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 @@ module.exports = { ); }, - 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)) }) |