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
|
* https://github.com/madrilene/eleventy-excellent/blob/main/config/shortcodes/youtube-lite/index.js
|
||||||
*/
|
*/
|
||||||
const liteYoutube = (id, label) => {
|
const liteYoutube = (id, label) => {
|
||||||
return `
|
return `<div class="youtube-embed">
|
||||||
<div class="youtube-embed"> <lite-youtube videoid="${id}" style="background-image: url('https://i.ytimg.com/vi/${id}/hqdefault.jpg');">
|
<lite-youtube videoid="${id}" style="background-image: url('https://i.ytimg.com/vi/${id}/hqdefault.jpg');">
|
||||||
<button type="button" class="lty-playbtn">
|
<button type="button" class="lty-playbtn">
|
||||||
<span class="lyt-visually-hidden">${label}</span>
|
<span class="lyt-visually-hidden">${label}</span>
|
||||||
</button>
|
</button>
|
||||||
</lite-youtube></div>
|
</lite-youtube>
|
||||||
`;
|
</div>`;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = liteYoutube;
|
module.exports = liteYoutube;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
{
|
{
|
||||||
"layout": "layouts/catalogue",
|
"tags": "catalogue"
|
||||||
"tags": "catalogue",
|
|
||||||
"permalink": "catalogue/index.html"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue