This file contains 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 | |
/** | |
* | |
* Lazysizes Modifier | |
* - Will add the lazyload class | |
* - Turns all srcs into data-src and srcset into data-srcset. | |
* - Generates a low rez blurred image to start. | |
* | |
* How to use: |
This file contains 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 | |
/** | |
* | |
* Srcset Modifier | |
* This modifier is meant to be used on objects with inaccessible srcsets. | |
* | |
* How to use: | |
* {{ content | srcsets:1440,1080,960,768,480,150 }} | |
* or <img src="{{ the_image | srcsets:1440,1080,960,768,480,150 }}"> |
This file contains 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
// Grab fs for file manipulation | |
const fs = require('fs'); | |
// Export our function | |
module.exports = function (packages = []) { | |
// Set up the package dir | |
let package_files = { | |
main: [] | |
}, |
This file contains 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
<style> | |
.social-revealer { | |
position: relative; | |
display: inline-block; | |
width: 200px; | |
height: 35px; | |
max-width: 100%; | |
background: #eee; | |
padding-left: 36px; | |
margin-bottom: 0px; |