1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-29 11:02:44 +00:00

Add clipboard JS

This commit is contained in:
Cotes Chung
2021-09-10 22:01:18 +08:00
parent 2537283beb
commit 5e9a7b319e
6 changed files with 45 additions and 27 deletions

View File

@@ -46,7 +46,7 @@ const postJs = () => {
`${JS_SRC}/utils/img-extra.js`,
`${JS_SRC}/utils/timeago.js`,
`${JS_SRC}/utils/checkbox.js`,
`${JS_SRC}/utils/copy-link.js`,
`${JS_SRC}/utils/clipboard.js`,
// 'smooth-scroll.js' must be called after ToC is ready
`${JS_SRC}/utils/smooth-scroll.js`
], 'post'
@@ -66,7 +66,7 @@ const pageJs = () => {
`${JS_SRC}/commons/*.js`,
`${JS_SRC}/utils/checkbox.js`,
`${JS_SRC}/utils/img-extra.js`,
`${JS_SRC}/utils/copy-link.js`,
`${JS_SRC}/utils/clipboard.js`
], 'page'
);
};