all repos — archive/homestead @ ab3c5ffb57980359a186936aa6fc2894f58eb625

My future indieweb platform

feat(taxon): Show taxonomy term in title

Alan Pearce
commit

ab3c5ffb57980359a186936aa6fc2894f58eb625

parent

e4e26ceca7bfe60185082748c54f7ccd30746350

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M src/responders.jssrc/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)) })