all repos — archive/homestead @ ad56116d0df26b4a6fe7f9cd04a21965d3184af5

My future indieweb platform

Reify taxonomies into just tags. I'm probably not going to need anything else, and this makes it a lot clearer

Alan Pearce
commit

ad56116d0df26b4a6fe7f9cd04a21965d3184af5

parent

84da95bc4a8374bd3962e2479df560c67a1b94ca

1 file changed, 5 insertions(+), 7 deletions(-)

changed files
M src/app.jssrc/app.js
@@ -53,13 +53,11 @@ "/post/:filename",
actions.post(config, responders.post, Posts.posts) ); - for (let [term, items] of Posts.taxonomies) { - router.get( - `taxon-${term}`, - `/${term}/:value`, - actions.taxonGenerator(config, responders.list, term, items) - ); - } + router.get( + "tag", + "/tag/:name", + actions.tag(config, responders.list, Posts.tags) + ); app.use( helmet({