Meekdai / Gmeek

Gmeek is a Blog All in Github
https://meekdai.github.io
MIT License
1.56k stars 224 forks source link

请问如何在文章中插入 iframe? #89

Open Wisof-Young opened 3 months ago

Wisof-Young commented 3 months ago

有点文章需要插入 iframe,例如 B 站的视频或者 Apple music 的音乐卡片会更好看一些。 我的写法是

<!-- ##{"script":"<iframe style='border-radius:12px' src='https://open.spotify.com/embed/track/0U3fV7K4WFfVRgLGEAKh3g?utm_source=generator' width='100%' height='152' frameBorder='0' allowfullscreen='' allow='autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture' loading='lazy'></iframe>"}## -->

最后生成的页面却没有显示(https://blog.oceanum.top/post/26.html

Meekdai commented 3 months ago

在文章中插入是不起作用的,只有最后一行的配置才会被读取。

Meekdai commented 3 months ago

你这个需求我想想看有没有好方法实现。

Wisof-Young commented 3 months ago

嗯嗯,谢谢回复

Meekdai commented 3 months ago

@Wisof-Young 功能已经添加,具体可以参考下面的链接 https://blog.meekdai.com/post/%E3%80%90Gmeek-jin-jie-%E3%80%91-wen-zhang-cha-ru-html-biao-qian.html