1

I'm looking to remove redundant directories from my output URLs. This seems like it would be straightforward, but I can't seem to figure it out. Specifically:

This: .com/tmj/recipes/cocktails/rye/toronto.html

Should be more like this: .com/cocktails/rye/toronto.html

I've got a bit of a funny set up using a git submodule that requires the actual src documents to be organized a special way. Anyone know how I can get around this?

4

1 回答 1

1

通过修改 src 配置,我能够获得我想要的 URL。这对我来说有点违反直觉,但现在我看到它的工作是有道理的。本质上,我告诉 DocPad 忽略额外的目录,并在没有它们的情况下生成站点。这是我使用的代码,将放置在 docpad 配置(docpad.coffee。)

documentsPaths: [ # default 'documents/the-mason-jar/recipes', 'pages' ]

于 2013-09-17T23:16:08.853 回答