Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wisof-Young opened this issue May 22, 2024 · 4 comments
Open

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

Wisof-Young opened this issue May 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Wisof-Young
Copy link

有点文章需要插入 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
Copy link
Owner

Meekdai commented May 22, 2024

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

@Meekdai
Copy link
Owner

Meekdai commented May 22, 2024

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

@Meekdai Meekdai added the enhancement New feature or request label May 22, 2024
@Wisof-Young
Copy link
Author

嗯嗯,谢谢回复

@Meekdai
Copy link
Owner

Meekdai commented May 31, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants