Setup inline scripts and styles

This commit is contained in:
Sam Carlton 2021-01-23 16:53:25 -06:00
parent 5cc0703508
commit 60a43c2f39
4 changed files with 78 additions and 7 deletions

View file

@ -19,7 +19,10 @@ class TV {
title: ({ video }) => {
// console.log('data', data)
return `${ video.name } - ${ config.head.title }`
}
},
// footerInlineScripts: () => [
// 'node_modules/lazysizes/lazysizes.min.js'
// ]
},
permalink: ({ video }) => {
@ -61,7 +64,7 @@ class TV {
<div class="video-row relative w-full">
<div class="video-row-contents flex overflow-x-auto whitespace-no-wrap py-2 space-x-6" style="scroll-snap-type:x mandatory;">
${ video.payload.relatedVideos.map(VideoCard) }
${ video.payload.relatedVideos.map( this.boundComponent(VideoCard) ) }
</div>
<button class="absolute left-0 h-10 w-10 flex justify-center items-center transform -translate-y-1/2 -translate-x-1/2 bg-darker rounded-full" style="top:50%;">