Compare commits
3 Commits
9b46411fa7
...
0acb102bd2
Author | SHA1 | Date |
---|---|---|
Nofated095 | 0acb102bd2 | |
Nofated095 | 5cf2fee8d2 | |
Nofated095 | de658f1ddd |
|
@ -1,6 +1,6 @@
|
||||||
name: Node.js Package
|
name: Node.js Package
|
||||||
|
|
||||||
on: workflow_dispatch
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|
|
@ -164,7 +164,6 @@ module.exports = class extends Component {
|
||||||
|
|
||||||
<link rel="preconnect" href="https://xgjalbum.oss-cn-hangzhou.aliyuncs.com" />
|
<link rel="preconnect" href="https://xgjalbum.oss-cn-hangzhou.aliyuncs.com" />
|
||||||
<link rel="preconnect" href="https://cdn.staticfile.org" />
|
<link rel="preconnect" href="https://cdn.staticfile.org" />
|
||||||
<link rel="preconnect" href="https://fonts.sourcegcdn.com" />
|
|
||||||
{canonical_url ? <link rel="canonical" href={canonical_url} /> : null}
|
{canonical_url ? <link rel="canonical" href={canonical_url} /> : null}
|
||||||
{rss ? <link rel="alternate" href={url_for(rss)} title={config.title} type="application/atom+xml" /> : null}
|
{rss ? <link rel="alternate" href={url_for(rss)} title={config.title} type="application/atom+xml" /> : null}
|
||||||
{favicon ? <link rel="icon" href={url_for(favicon)} /> : null}
|
{favicon ? <link rel="icon" href={url_for(favicon)} /> : null}
|
||||||
|
@ -172,6 +171,17 @@ module.exports = class extends Component {
|
||||||
{hlTheme ? <link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href={cdn('highlight.js', '11.7.0', 'styles/' + hlTheme + '.css')} /> : null}
|
{hlTheme ? <link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href={cdn('highlight.js', '11.7.0', 'styles/' + hlTheme + '.css')} /> : null}
|
||||||
<link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href={fontCssUrl[variant]} />
|
<link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href={fontCssUrl[variant]} />
|
||||||
<link rel="stylesheet" href={url_for('/css/' + variant + '.css')} />
|
<link rel="stylesheet" href={url_for('/css/' + variant + '.css')} />
|
||||||
|
<script>
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', function () {
|
||||||
|
navigator.serviceWorker.register('/js/sw.js').then(function (registration) {
|
||||||
|
console.log('ServiceWorker registration successful with scope: ', registration.scope);
|
||||||
|
}).catch(function (err) {
|
||||||
|
console.log('ServiceWorker registration failed: ', err);
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<Plugins site={site} config={config} helper={helper} page={page} head={true} />
|
<Plugins site={site} config={config} helper={helper} page={page} head={true} />
|
||||||
|
|
||||||
{adsenseClientId ? <script data-ad-client={adsenseClientId}
|
{adsenseClientId ? <script data-ad-client={adsenseClientId}
|
||||||
|
|
|
@ -45,7 +45,6 @@ module.exports = class extends Component {
|
||||||
var lazyLoadInstance = new LazyLoad({
|
var lazyLoadInstance = new LazyLoad({
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</Fragment>;
|
</Fragment>;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hexo-theme-amane",
|
"name": "hexo-theme-amane",
|
||||||
"version": "0.0.29",
|
"version": "0.0.32",
|
||||||
"author": "Nofated095 <nofated095@users.noreply.github.com>",
|
"author": "Nofated095 <nofated095@users.noreply.github.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A simple, delicate, and modern theme for Hexo",
|
"description": "A simple, delicate, and modern theme for Hexo",
|
||||||
|
|
Loading…
Reference in New Issue