Customizing Barceloneta theme

For a minimal theme with just re-using Barceloneta, you need three things:

  1. <xi:include href="++theme++barceloneta/rules.xml" /> in your rules.xml
  2. Copy index.html from Barceloneta-theme
  3. Add production-css = ++theme++barceloneta/less/barceloneta-compiled.css into manifest.cfg

Part 1) is clear.

Part 2) is weird. I'd expected <theme href="++theme++barceloneta/index.html" /> to work, but it didn't. Instead it resulted both the index.html from new theme and index.html from barceloneta being applied at the same time.

Part 3) registers CSS for implicit "diazo bundle", which is automatically appended after other resource registry bundles when a theme is enabled.

1 Like