{{ directory }} in Twig template in base theme breaks subtheme
You can also use this:
{{ source('@parent/../images/svg/resources.svg') }}

where @parent is the name of the parent theme. @parent references to the templates folder, so @parent/../ was added to go to the root directory of your theme.