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

是否可以增强page页面的excerpt字段功能 #11

Closed
Pikaconan opened this issue Feb 26, 2020 · 4 comments
Closed

是否可以增强page页面的excerpt字段功能 #11

Pikaconan opened this issue Feb 26, 2020 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@Pikaconan
Copy link

想要使用 MetingJS 做一个音乐页面,因为 MetingJS 提供了 CDN 引入,可以直接在 head 标签里引入。

所以 page 的 excerpt 字段是否可以直接解析到 head 里,如:

excerpt: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

然后正文里:

<meting-js server="netease" type="playlist" id="#">

目前我是直接在正文里插入以上两段代码,播放器加载是稍慢的,不是很优雅==

@Pikaconan Pikaconan added the help wanted Extra attention is needed label Feb 26, 2020
@AlanDecode
Copy link
Owner

不行,这不是 excerpt 的作用。

@Pikaconan
Copy link
Author

Pikaconan commented Feb 26, 2020

不行,这不是 excerpt 的作用。

emmm,只能期待插件系统了吗?通过 excerpt 是我异想天开了。

@AlanDecode
Copy link
Owner

可以在 config 文件中通过 head_addon 选项引入 CSS 和 JS 啊。

@Pikaconan
Copy link
Author

可以在 config 文件中通过 head_addon 选项引入 CSS 和 JS 啊。

我想过这种方法,但是没去试,担心拖累整站的速度,刚才仔细去看了下文件似乎不是很大==谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants