feat: small fixes
This commit is contained in:
parent
850173ec90
commit
91bf9a1d7b
2 changed files with 5 additions and 7 deletions
|
@ -2,13 +2,13 @@
|
|||
* https://github.com/madrilene/eleventy-excellent/blob/main/config/shortcodes/youtube-lite/index.js
|
||||
*/
|
||||
const liteYoutube = (id, label) => {
|
||||
return `
|
||||
<div class="youtube-embed"> <lite-youtube videoid="${id}" style="background-image: url('https://i.ytimg.com/vi/${id}/hqdefault.jpg');">
|
||||
return `<div class="youtube-embed">
|
||||
<lite-youtube videoid="${id}" style="background-image: url('https://i.ytimg.com/vi/${id}/hqdefault.jpg');">
|
||||
<button type="button" class="lty-playbtn">
|
||||
<span class="lyt-visually-hidden">${label}</span>
|
||||
</button>
|
||||
</lite-youtube></div>
|
||||
`;
|
||||
</lite-youtube>
|
||||
</div>`;
|
||||
};
|
||||
|
||||
module.exports = liteYoutube;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue