mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Make eleventy js templates asynchronus
This commit is contained in:
parent
bb40fd294c
commit
84355645bf
4 changed files with 16 additions and 10 deletions
|
|
@ -9,14 +9,14 @@ function pill ( text ) {
|
|||
`
|
||||
}
|
||||
|
||||
export default function ( video, options = {} ) {
|
||||
export default async function ( video, options = {} ) {
|
||||
const {
|
||||
width = '325px',
|
||||
classes = 'w-full flex-shrink-0 flex-grow-0 border-2 border-transparent rounded-2xl overflow-hidden'
|
||||
} = options
|
||||
|
||||
// Setup inline lazysizes
|
||||
this.usingComponent( 'node_modules/lazysizes/lazysizes.min.js' )
|
||||
await this.usingComponent( 'node_modules/lazysizes/lazysizes.min.js' )
|
||||
|
||||
// console.log('video', video)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue