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
| $favorite-color: green; | |
| $pad: 1em; | |
| #app { | |
| background-color: $favorite-color; | |
| h1 { | |
| font-size: $pad * 5; | |
| } | |
| } |
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 | |
| // Your theme's functions.php file... | |
| function custom_tag_taxonomy( $slug ) { | |
| return 'YOUR_CUSTOM_SLUG'; | |
| } | |
| add_filter( 'tmt_tag_taxonomy', 'custom_tag_taxonomy', 10, 1 ); |
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
| // Directive: x-clipboard | |
| Alpine.directive('clipboard', async (el, { expression }) => { | |
| el.addEventListener('click', async () => { | |
| await navigator.clipboard.writeText(expression); | |
| document.dispatchEvent( | |
| new CustomEvent('banner-message', { detail: { style: 'success', message: 'Copied to clipboard!' } }) | |
| ); | |
| }); | |
| }); |
OlderNewer