mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-05-08 01:38:43 +00:00
refactor(build): modularize JS code
- replace gulp with rollup - remove JS output from repo
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { back2top } from '../components/back-to-top';
|
||||
import { loadTooptip } from '../components/tooltip-loader';
|
||||
|
||||
export function basic() {
|
||||
back2top();
|
||||
loadTooptip();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { modeWatcher } from '../components/mode-watcher';
|
||||
import { sidebarExpand } from '../components/sidebar';
|
||||
|
||||
export function initSidebar() {
|
||||
modeWatcher();
|
||||
sidebarExpand();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { convertTitle } from '../components/convert-title';
|
||||
import { displaySearch } from '../components/search-display';
|
||||
import { switchTopbar } from '../components/topbar-switcher';
|
||||
|
||||
export function initTopbar() {
|
||||
convertTitle();
|
||||
displaySearch();
|
||||
switchTopbar();
|
||||
}
|
||||
Reference in New Issue
Block a user