Mimi d248a3f9a6
Refactor vendors (#72)
* Compatibility with `@next-theme/plugins`

* Update test cases
2020-08-02 11:04:04 +08:00

12 lines
296 B
Plaintext

<script>
NexT.utils.loadComments('#valine-comments', () => {
NexT.utils.getScript('{{ theme.vendors.valine }}', () => {
new Valine(Object.assign({
el : '#valine-comments',
path: location.pathname,
}, {{ theme.valine | safedump }}
));
}, window.Valine);
});
</script>