Sorry for the delay!
Your setup will work, but not exactly in the way you implemented it.
My recommendation: Use a directory structure like this:
kirby/
...
panel/
...
test.dev/
assets/
...
content/
...
index.php
kirby -> ../kirby
panel -> ../panel
site/
...
test2.dev/
assets/
...
content/
...
index.php
kirby -> ../kirby
panel -> ../panel
site/
...
Basically you have separate sites but use a global kirby
and panel
directory outside of the webroots. Those two directories are then linked into the sites using a symbolic link (ln -s ../kirby kirby
).
It won’t change anything on Linux/macOS. But you should change it anyway.
Kirby does not keep track of any other assets than autocss
/autojs
and avatars. It just doesn’t care at all where all other assets like images and fonts are stored. That’s why there is no configuration option for this – it wouldn’t get used anywhere.
If you use css('assets/css/whatever.css')
, you just get a style tag with a URL that is relative to the site’s root URL, it doesn’t matter if you are pointing to the assets
directory or a directory with a different name.