Add tests
Modify parsing logic
Add default partials config for theme