mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add youtube story
This commit is contained in:
parent
0f8b2b3ddb
commit
2231b83d99
1 changed files with 20 additions and 0 deletions
20
components-eleventy/story/youtube.js
Normal file
20
components-eleventy/story/youtube.js
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
export default function ( page ) {
|
||||||
|
|
||||||
|
const {
|
||||||
|
videoId
|
||||||
|
} = page
|
||||||
|
|
||||||
|
// Setup inline lazysizes
|
||||||
|
// this.usingComponent( 'node_modules/lazysizes/lazysizes.min.js' )
|
||||||
|
|
||||||
|
// console.log('video', video)
|
||||||
|
|
||||||
|
return /* html */`
|
||||||
|
<amp-youtube
|
||||||
|
data-videoid="${ videoId }"
|
||||||
|
layout="responsive"
|
||||||
|
width="480"
|
||||||
|
height="270"
|
||||||
|
></amp-youtube>
|
||||||
|
`
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue