This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php /** | |
| * Discovers and registers template part hooks | |
| * Uses transient caching for performance | |
| */ | |
| add_action('after_setup_theme', function () { | |
| $tp_dir = get_stylesheet_directory() . '/template-parts'; | |
| if (! is_dir($tp_dir)) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * All config options can be found here | |
| * https://unlighthouse.dev/api/config/ | |
| */ | |
| export default { | |
| // set site url | |
| site: '', | |
| // set max routes / pages | |
| scanner: { | |
| maxRoutes: 500, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *:focus-visible { | |
| outline: auto; | |
| } | |
| img { | |
| height: auto; | |
| max-width: 100%; | |
| display: block; | |
| } |