New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hexo-theme-next

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-theme-next - npm Package Compare versions

Comparing version 8.11.1 to 8.12.0

9

docs/ru/README.md

@@ -22,3 +22,2 @@ <div align="right">

[![Coverage Status](https://img.shields.io/coveralls/github/next-theme/hexo-theme-next?logo=coveralls&style=flat-square)](https://coveralls.io/github/next-theme/hexo-theme-next)
[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/hexo-theme-next?logo=jsdelivr&logoColor=white&style=flat-square)](https://www.jsdelivr.com/package/npm/hexo-theme-next)

@@ -78,5 +77,5 @@ ## Демо

Third-party plugins are loaded from [jsDelivr](https://www.jsdelivr.com) CDN by default. We also provide other optional CDNs, including the famous [UNPKG](https://unpkg.com) and [CDNJS](https://cdnjs.com).
Third-party plugins are loaded from [CDNJS](https://cdnjs.com) CDN by default. We also provide other optional CDNs, including the famous [UNPKG](https://unpkg.com) and [jsDelivr](https://www.jsdelivr.com).
For example, if you want to use `unpkg` instead of `jsdelivr` as the default CDN provider, you need to edit the following settings in NexT config file:
For example, if you want to use `unpkg` instead of `cdnjs` as the default CDN provider, you need to edit the following settings in NexT config file:

@@ -146,5 +145,5 @@ ```yml

<a href="https://www.jsdelivr.com"><img height="40" src="https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg"></a>
<a href="https://cdnjs.com"><img height="40" src="https://raw.githubusercontent.com/cdnjs/brand/master/logo/source/dark-brackets.svg"></a>
> Thanks jsDelivr for providing public CDN service.
> Thanks CDNJS for providing public CDN service.

@@ -151,0 +150,0 @@ [docs-installation-url]: https://theme-next.js.org/docs/getting-started/installation.html

@@ -22,3 +22,2 @@ <div align="right">

[![Coverage Status](https://img.shields.io/coveralls/github/next-theme/hexo-theme-next?logo=coveralls&style=flat-square)](https://coveralls.io/github/next-theme/hexo-theme-next)
[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/hexo-theme-next?logo=jsdelivr&logoColor=white&style=flat-square)](https://www.jsdelivr.com/package/npm/hexo-theme-next)

@@ -78,5 +77,5 @@ ## 即时预览

第三方插件默认通过 [jsDelivr](https://www.jsdelivr.com) CDN 服务加载。我们也提供了其它的 CDN 服务供选择,包括著名的 [UNPKG](https://unpkg.com) 和 [CDNJS](https://cdnjs.com)。
第三方插件默认通过 [CDNJS](https://cdnjs.com) CDN 服务加载。我们也提供了其它的 CDN 服务供选择,包括著名的 [UNPKG](https://unpkg.com) 和 [jsDelivr](https://www.jsdelivr.com)。
例如,你想要使用 `unpkg` 代替 `jsdelivr` 作为默认的 CDN 提供商,你需要在 NexT 配置文件中进行如下设置:
例如,你想要使用 `unpkg` 代替 `cdnjs` 作为默认的 CDN 提供商,你需要在 NexT 配置文件中进行如下设置:

@@ -146,5 +145,5 @@ ```yml

<a href="https://www.jsdelivr.com"><img height="40" src="https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg"></a>
<a href="https://cdnjs.com"><img height="40" src="https://raw.githubusercontent.com/cdnjs/brand/master/logo/source/dark-brackets.svg"></a>
> jsDelivr 提供了 CDN 服务。
> 感谢 CDNJS 提供的 CDN 服务。

@@ -151,0 +150,0 @@ [docs-installation-url]: https://theme-next.js.org/docs/getting-started/installation.html

{
"name": "hexo-theme-next",
"version": "8.11.1",
"version": "8.12.0",
"description": "Elegant and powerful theme for Hexo.",

@@ -37,7 +37,7 @@ "main": "package.json",

"chai": "4.3.6",
"eslint": "8.14.0",
"hexo": "6.1.0",
"eslint": "8.16.0",
"hexo": "6.2.0",
"hexo-renderer-marked": "5.0.0",
"js-yaml": "4.1.0",
"mocha": "9.2.2",
"mocha": "10.0.0",
"nyc": "15.1.0",

@@ -44,0 +44,0 @@ "stylint": "2.0.0"

@@ -22,3 +22,2 @@ <div align="right">

[![Coverage Status](https://img.shields.io/coveralls/github/next-theme/hexo-theme-next?logo=coveralls&style=flat-square)](https://coveralls.io/github/next-theme/hexo-theme-next)
[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/hexo-theme-next?logo=jsdelivr&logoColor=white&style=flat-square)](https://www.jsdelivr.com/package/npm/hexo-theme-next)

@@ -78,5 +77,5 @@ ## Live Preview

Third-party plugins are loaded from [jsDelivr](https://www.jsdelivr.com) CDN by default. We also provide other optional CDNs, including the famous [UNPKG](https://unpkg.com) and [CDNJS](https://cdnjs.com).
Third-party plugins are loaded from [CDNJS](https://cdnjs.com) CDN by default. We also provide other optional CDNs, including the famous [UNPKG](https://unpkg.com) and [jsDelivr](https://www.jsdelivr.com).
For example, if you want to use `unpkg` instead of `jsdelivr` as the default CDN provider, you need to edit the following settings in NexT config file:
For example, if you want to use `unpkg` instead of `cdnjs` as the default CDN provider, you need to edit the following settings in NexT config file:

@@ -146,5 +145,5 @@ ```yml

<a href="https://www.jsdelivr.com"><img height="40" src="https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg"></a>
<a href="https://cdnjs.com"><img height="40" src="https://raw.githubusercontent.com/cdnjs/brand/master/logo/source/dark-brackets.svg"></a>
> Thanks jsDelivr for providing public CDN service.
> Thanks CDNJS for providing public CDN service.

@@ -151,0 +150,0 @@ [docs-installation-url]: https://theme-next.js.org/docs/getting-started/installation.html

@@ -44,6 +44,10 @@ 'use strict';

});
let { plugins = 'jsdelivr' } = vendors;
if (plugins === 'local' && typeof internal === 'undefined') plugins = 'jsdelivr';
let { plugins = 'cdnjs' } = vendors;
if (plugins === 'local' && typeof internal === 'undefined') {
hexo.log.warn('Dependencies for `plugins: local` not found. The default CDN provider CDNJS is used instead.');
hexo.log.warn('Run `npm install @next-theme/plugins` in Hexo site root directory to install the plugin.');
plugins = 'cdnjs';
}
vendors[key] = {
url : links[plugins] || links.jsdelivr,
url : links[plugins] || links.cdnjs,
integrity: value.integrity

@@ -50,0 +54,0 @@ };

@@ -115,2 +115,3 @@ /* global hexo */

hexo.route.remove('js/third-party/search/algolia-search.js');
hexo.route.remove('images/logo-algolia-nebula-blue-full.svg');
}

@@ -117,0 +118,0 @@

@@ -61,7 +61,7 @@ /* global hexo */

const links = {
local : parse(this.theme.js || '').protocol + '//' + parse(this.theme.js || '').hostname,
local : this.theme.js && parse(this.theme.js).hostname ? parse(this.theme.js).protocol + '//' + parse(this.theme.js).hostname : '',
jsdelivr: 'https://cdn.jsdelivr.net',
unpkg : 'https://unpkg.com',
cdnjs : 'https://cdnjs.cloudflare.com',
custom : parse(custom_cdn_url || '').protocol + '//' + parse(custom_cdn_url || '').hostname
custom : custom_cdn_url && parse(custom_cdn_url).hostname ? parse(custom_cdn_url).protocol + '//' + parse(custom_cdn_url).hostname : ''
};

@@ -68,0 +68,0 @@ const h = enable ? host || 'https://fonts.googleapis.com' : '';

@@ -21,3 +21,3 @@ /* global hexo */

sidebar : theme.sidebar,
copycode : theme.codeblock.copy_button.enable,
copycode : theme.codeblock.copy_button,
bookmark : theme.bookmark,

@@ -24,0 +24,0 @@ mediumzoom: theme.mediumzoom,

@@ -54,3 +54,3 @@ /* global NexT, CONFIG */

pushToSequence('.header');
pushToSequence('header.header');
CONFIG.scheme === 'Mist' && getMistLineSettings('.logo-line');

@@ -57,0 +57,0 @@ CONFIG.scheme === 'Muse' && pushToSequence('.custom-logo-image');

@@ -48,2 +48,3 @@ /* global NexT, CONFIG */

CONFIG.exturl && NexT.utils.registerExtURL();
NexT.utils.wrapTableWithBox();
NexT.utils.registerCopyCode();

@@ -55,3 +56,2 @@ NexT.utils.registerTabsTag();

NexT.utils.registerPostReward();
NexT.utils.wrapTableWithBox();
NexT.utils.registerVideoIframe();

@@ -58,0 +58,0 @@ };

@@ -53,3 +53,3 @@ /* global CONFIG */

const footer = document.querySelector('.footer');
const containerHeight = document.querySelector('.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight;
const containerHeight = document.querySelector('header.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight;
footer.classList.toggle('footer-fixed', containerHeight <= window.innerHeight);

@@ -56,0 +56,0 @@ }

@@ -54,4 +54,6 @@ /* global NexT, CONFIG */

});
if (!CONFIG.copycode) return;
element.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-copy fa-fw"></i></div>');
if (!CONFIG.copycode.enable) return;
let target = element;
if (CONFIG.copycode.style !== 'mac') target = element.querySelector('.table-container') || element;
target.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-copy fa-fw"></i></div>');
const button = element.querySelector('.copy-btn');

@@ -58,0 +60,0 @@ button.addEventListener('click', () => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc