I'm trying to import multiple css resources in my own CKAN theme using Fanstatic like this:
{% resource 'my_fanstatic_library/b.css' %}
{% resource 'my_fanstatic_library/a.css' %}
Unfortunately CKAN renders them in alphabetical order:
<link rel="stylesheet" type="text/css" href="/fanstatic/mytheme/:version:2015-05-11T14:07:18/a.css" />
<link rel="stylesheet" type="text/css" href="/fanstatic/mytheme/:version:2015-05-11T14:07:18/b.css" />
To overwrite the order I tried to create a resource.config
-file with the following content:
[main]
order = b.css a.css
[custom render order]
b.css = 1
a.css = 2
[depends]
a.css = b.css
But sadly there was no change in the rendering order. I placed the resource.config
file in the mytheme/fanstatic/
folder and moved it to mytheme/
but nothing helped.