hexo-theme-next
Advanced tools
Comparing version 8.2.0 to 8.2.1
{ | ||
"name": "hexo-theme-next", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"description": "Elegant and powerful theme for Hexo.", | ||
"main": "package.json", | ||
"files": [ | ||
"docs", | ||
"languages", | ||
"layout", | ||
"scripts", | ||
"source", | ||
"_config.yml", | ||
"_vendors.yml" | ||
], | ||
"scripts": { | ||
@@ -26,7 +35,7 @@ "eslint": "eslint scripts/ source/js test/", | ||
"chai": "4.2.0", | ||
"eslint": "7.16.0", | ||
"eslint": "7.19.0", | ||
"hexo": "5.3.0", | ||
"hexo-renderer-marked": "3.3.0", | ||
"husky": "4.3.6", | ||
"js-yaml": "3.14.1", | ||
"husky": "4.3.8", | ||
"js-yaml": "4.0.0", | ||
"mocha": "8.2.1", | ||
@@ -33,0 +42,0 @@ "stylint": "2.0.0" |
@@ -13,3 +13,3 @@ 'use strict'; | ||
const vendorsFile = fs.readFileSync(path.join(__dirname, '../../../_vendors.yml')); | ||
const dependencies = yaml.safeLoad(vendorsFile); | ||
const dependencies = yaml.load(vendorsFile); | ||
@@ -29,5 +29,5 @@ module.exports = hexo => { | ||
local : url_for.call(hexo, `lib/${name}/${file}`), | ||
jsdelivr: `//cdn.jsdelivr.net/npm/${name}@${version}/${file}`, | ||
unpkg : `//unpkg.com/${name}@${version}/${file}`, | ||
cdnjs : `//cdnjs.cloudflare.com/ajax/libs/${alias || name}/${version}/${file.replace(/^(dist|lib|)\/(browser\/|)/, '')}` | ||
jsdelivr: `https://cdn.jsdelivr.net/npm/${name}@${version}/${file}`, | ||
unpkg : `https://unpkg.com/${name}@${version}/${file}`, | ||
cdnjs : `https://cdnjs.cloudflare.com/ajax/libs/${alias || name}/${version}/${file.replace(/^(dist|lib|)\/(browser\/|)/, '')}` | ||
}; | ||
@@ -34,0 +34,0 @@ let { plugins = 'jsdelivr' } = vendors; |
@@ -21,2 +21,3 @@ /* global hexo */ | ||
locals.languages.splice(locals.languages.indexOf('default'), 1); | ||
// See https://github.com/hexojs/hexo/pull/4614 | ||
page.lang = page.lang || page.language; | ||
@@ -23,0 +24,0 @@ // Creative Commons |
@@ -23,5 +23,5 @@ /* global hexo */ | ||
local : this.url_for(`${this.theme.js}/${file}`), | ||
jsdelivr: `//cdn.jsdelivr.net/npm/hexo-theme-next@${next_version}/source/js/${file}`, | ||
unpkg : `//unpkg.com/hexo-theme-next@${next_version}/source/js/${file}`, | ||
cdnjs : `//cdnjs.cloudflare.com/ajax/libs/hexo-theme-next/${next_version}/${file}` | ||
jsdelivr: `https://cdn.jsdelivr.net/npm/hexo-theme-next@${next_version}/source/js/${file}`, | ||
unpkg : `https://unpkg.com/hexo-theme-next@${next_version}/source/js/${file}`, | ||
cdnjs : `https://cdnjs.cloudflare.com/ajax/libs/hexo-theme-next/${next_version}/${file}` | ||
}; | ||
@@ -28,0 +28,0 @@ const src = links[internal] || links.local; |
@@ -10,3 +10,3 @@ 'use strict'; | ||
const fontStyles = ':300,300italic,400,400italic,700,700italic'; | ||
const fontHost = config.host || '//fonts.googleapis.com'; | ||
const fontHost = config.host || 'https://fonts.googleapis.com'; | ||
@@ -13,0 +13,0 @@ // Get a font list from config |
@@ -89,2 +89,3 @@ /* global NexT, CONFIG */ | ||
if (navigator.clipboard) { | ||
// https://caniuse.com/mdn-api_clipboard_writetext | ||
navigator.clipboard.writeText(code).then(() => { | ||
@@ -91,0 +92,0 @@ button.querySelector('i').className = 'fa fa-check-circle fa-fw'; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
493161
2238