-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,183 additions
and
835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
_config.yml | ||
source/images/favicon.png | ||
source/images/logo.png | ||
node_modules | ||
node_modules | ||
source/js_complied | ||
source/js/deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
**/*.min.js | ||
**/*.min.css | ||
**/*.min.css | ||
source/js_complied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const cp = require('child_process'); | ||
|
||
module.exports = function (hexo) { | ||
hexo.log.info('building js'); | ||
console.log(cp); | ||
cp.execSync('yarn build', { cwd: './themes/Anatolo', stdio: 'inherit' }); | ||
hexo.log.info('build successful!'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ meta(content="yes", name="apple-mobile-web-app-capable") | |
meta(content="black", name="apple-mobile-web-app-status-bar-style") | ||
meta(content="telephone=no", name="format-detection") | ||
|
||
meta#site_root_url(data=url_for("/")) | ||
meta#site_data_static(data-url=url_for("/")) | ||
meta#default-theme(data=theme.defaultTheme == "dark-mode" ? "dark" : "light") | ||
|
||
meta(name="renderer", content="webkit") | ||
|
@@ -31,23 +31,9 @@ link(rel="stylesheet", href=url_for("css/insight.css")) | |
link(rel="stylesheet", href=url_for("css/search.css")) | ||
link(rel="alternate", type="application/atom+xml", title="ATOM 1.0", href="/atom.xml") | ||
|
||
script(src=url_for("js/utils/index.js")) | ||
script(src=url_for("js/lib/eventemitter3.umd.min.js")) | ||
script( | ||
src="https://code.jquery.com/jquery-3.7.1.min.js", | ||
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=", | ||
crossorigin="anonymous" | ||
) | ||
script(src="https://cdn.jsdelivr.net/npm/[email protected]") | ||
script(src=url_for("js/lib/jquery-migrate-1.2.1.min.js")) | ||
script(src=url_for("js/lib/jquery.appear.js")) | ||
script(src=url_for("js/anatolo.js")) | ||
script(src=url_for("js/router.js")) | ||
script(src=url_for("js/darkLightToggle.js")) | ||
script(src=url_for("js/share.js")) | ||
script(src=url_for("js_complied/bundle.js")) | ||
if theme.Baidutongji | ||
script(src=url_for("js/baidu-tongji.js")) | ||
|
||
include comments | ||
+require_comment_scripts | ||
script(src=url_for("js/load-comment.js")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import typescript from "@rollup/plugin-typescript"; | ||
import terser from '@rollup/plugin-terser'; | ||
|
||
export default [ | ||
// browser-friendly UMD build | ||
{ | ||
input: 'src/main.ts', | ||
output: { | ||
name: 'main.js', | ||
file: "source/js_complied/bundle.js", | ||
// format: 'umd', | ||
format: 'umd', | ||
}, | ||
plugins: [ | ||
resolve(), // so Rollup can find `ms` | ||
commonjs(), // so Rollup can convert `ms` to an ES module | ||
typescript(), | ||
terser(), | ||
], | ||
}, | ||
|
||
// CommonJS (for Node) and ES module (for bundlers) build. | ||
// (We could have three entries in the configuration array | ||
// instead of two, but it's quicker to generate multiple | ||
// builds from a single configuration where possible, using | ||
// an array for the `output` option, where we can specify | ||
// `file` and `format` for each target) | ||
// { | ||
// input: 'src/main.js', | ||
// external: ['ms'], | ||
// output: [ | ||
// { file: pkg.main, format: 'cjs' }, | ||
// { file: pkg.module, format: 'es' }, | ||
// ], | ||
// }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.