srackham / hindsite

hindsite is a fast, lightweight static website generator.
MIT License
2 stars 2 forks source link

Process one content dir with 2 templates #10

Closed tyeeman closed 4 weeks ago

tyeeman commented 1 month ago

I'm starting over to explain.

Can I have 1 content dir processed by 2 templates into 1 build folder?

hindsite build -keep -site myblog -template template\posts\narrow

hindsite build -keep -site myblog -template template\posts\wide

I want some of the files in the "content\posts" dir fed to the "narrow" template and other files fed to the "wide" template, but there is no way to specify this.

The above commands will feed all content files through each template and the "wide" will overwrite the "narrow", so no the only way is to split the content files into 2 dirs (wide and narrow) and then everything should work fine.

tyeeman commented 4 weeks ago

I did split the content files into 2 dirs and it's working fine.

tyeeman commented 4 weeks ago

Done