Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a User, I want themes, so that I can change my theme without changing my skeleton #126

Closed
balupton opened this issue Jan 2, 2012 · 5 comments

Comments

@balupton
Copy link
Member

balupton commented Jan 2, 2012

Would be a pretty a big change, however a very valuable one.

Current thoughts is that your stylesheet will reference which theme you want to use.

@bobobo1618
Copy link

How about you transfer the Skeleton over to Kickstrap? It's Bootstrap based so pretty similar and it has built in support for themes via LESS, which would be conveniently and automatically compiled by Docpad.

@balupton
Copy link
Member Author

balupton commented Apr 7, 2012

That seems more of writing a new skeleton, rather than properly adding theme support into docpad.

The idea of themes, is so:

You will have a src/themes directory, new themes will be installed here, each theme will contain the same src directories we are use to, e.g. documents, files, layouts, partials. The theme is set via the docpad configuration (which can be set via your website's package.json). It would work by adding extra "parths" to the requires, e.g. specifying layout: post - would first try src/layouts/post, then if that fails (the file doesn't exist) it would try your theme's src/themes/yourChosenTheme/layouts/post. In regards to partials, it would work like so: @partial('document-list',theme: 'blah')

This way themes can be dropped in, regardless of which skeleton your are using.

@bobobo1618
Copy link

Ahh, I see what you mean. Sounds pretty good. Sounds like it would need some standardisation in the design and layout though.

@balupton
Copy link
Member Author

Closing, as is more of a discussion than an actionable task.

@zenorocha
Copy link

This is the exactly problem that we're facing on braziljs/confboilerplate. We need the ability of having custom themes for each event.

+1 for having a src/themes dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants