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
| body { | |
| background: black; | |
| } | |
| body, img { | |
| filter: invert(1) hue-rotate(180deg); | |
| } |
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
| { | |
| "name": "glyphhanger-usage", | |
| "version": "0.1.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "convert": "npx glyphhanger --subset=\"*.ttf\" --formats=woff2", | |
| "subset": "npx glyphhanger --subset=\"*.ttf\" --US_ASCII --formats=woff2" | |
| }, | |
| "keywords": [], |
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
| {# using macro directly #} | |
| {{ image({ | |
| url: '/path/to/image.jpg', | |
| alt: 'Image alt attribute', | |
| class: 'mb-30', | |
| imgClass: 'rounded', | |
| lazy: false, | |
| width: 1920, | |
| height: 1080, | |
| ratio: 0.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
| self.addEventListener('activate', event => { | |
| event.waitUntil( | |
| caches.keys().then(allCaches => { | |
| return Promise.all(allCaches.map(cacheToDelete => { | |
| return caches.delete(cacheToDelete); | |
| })); | |
| }).then(() => self.clients.claim()) | |
| ); | |
| }); |
NewerOlder