Hello!
I have a lot of links in my site, some of them contains http/https and some not. I want to check every link and if it contains http then add target="_blank" to it.
I want to use macro for this, but this theme is unclear in documentation:
1) In which file should I create this macro and in which folder? It should be a special file like functions.php in WordPress.
2) How to use it globally in every twig file?
I found macros.html.twig in Antimatter:
https://github.com/getgrav/grav-theme-antimatter/blob/f672ecbefe55c7e79a6672dcd3e6bc9b4c2e27a8/templates/macros/macros.html.twig
but can't find where this file is included or used:
https://github.com/getgrav/grav-theme-antimatter/search?q=macro&type=Code&utf8=%E2%9C%93
Help =)