ludovicchabant / PieCrust

A simple PHP website engine and static file generator.
http://bolt80.com/piecrust
Other
239 stars 45 forks source link

adding themes_sources: #132

Closed mistergraphx closed 10 years ago

mistergraphx commented 10 years ago

Hi & thanks for this great tool.

I tried to add a themes_sources: config to create multiple themes for the generated sites, like you describe in this article. http://ludovic.chabant.com/devblog/2012/11/06/themes-in-piecrust/

But chef themes install Theme1 retur Can't find a single theme named: Theme1

my config.yml file :

site:
    title: 'Projet 1'
    description: 'Base de démarrage HTML5'
    author: Arnaud B. (Mist. GraphX)
    pretty_urls: false
    auto_formats:
        md: markdown
markdown:
    use_markdown_extra: true
themes_sources:
    - ../_themes
smartypants:
    enable: true

The file structure is

/ |-> _themes | |->theme1 | |->theme2 |-> Site1 | |-> _content

Could you explain me where i'm wrong ?.

ludovicchabant commented 10 years ago

Hi!

Did you follow the instructions for creating the themes? The most important is probably to have the theme_info.yml file at the root of each theme, which is where you specify the theme name. If you go chef themes find, it should list your themes if they have such a file.

mistergraphx commented 10 years ago

OK , it works now, i think it was just an indentation problem in my declaration of theme_source :/

thx for your answer.