-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update blog UTC 2025-02-07 Friday 10:09:05 Updated By Github Actions
- Loading branch information
0 parents
commit a2f1eea
Showing
54 changed files
with
23,086 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,335 @@ | ||
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>页面没有找到 | 考拉のblog</title><meta name="keywords" content="乏善可陈"><meta name="author" content="赵树下"><meta name="copyright" content="赵树下"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="雄关漫道真如铁,而今迈步从头越"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:title" content="考拉のblog"> | ||
<meta property="og:url" content="http://izbh.github.io/404.html"> | ||
<meta property="og:site_name" content="考拉のblog"> | ||
<meta property="og:description" content="雄关漫道真如铁,而今迈步从头越"> | ||
<meta property="og:locale" content="zh_CN"> | ||
<meta property="og:image" content="https://cdn.jsdelivr.net/gh/cxk-images/images/202210160213498.jpg"> | ||
<meta property="article:author" content="赵树下"> | ||
<meta property="article:tag" content="乏善可陈"> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:image" content="https://cdn.jsdelivr.net/gh/cxk-images/images/202210160213498.jpg"><link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/cxk-images/images/202210160213498.jpg"><link rel="canonical" href="http://izbh.github.io/404"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { | ||
root: '/', | ||
algolia: undefined, | ||
localSearch: undefined, | ||
translate: undefined, | ||
noticeOutdate: {"limitDay":100,"position":"top","messagePrev":"本文于","messageNext":"天前更新,文章中一些信息可能已经过时,仅供参考。"}, | ||
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true}, | ||
copy: { | ||
success: '复制成功', | ||
error: '复制错误', | ||
noSupport: '浏览器不支持' | ||
}, | ||
relativeDate: { | ||
homepage: true, | ||
post: false | ||
}, | ||
runtime: '天', | ||
date_suffix: { | ||
just: '刚刚', | ||
min: '分钟前', | ||
hour: '小时前', | ||
day: '天前', | ||
month: '个月前' | ||
}, | ||
copyright: undefined, | ||
lightbox: 'fancybox', | ||
Snackbar: undefined, | ||
source: { | ||
jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js', | ||
justifiedGallery: { | ||
js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js', | ||
css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css' | ||
}, | ||
fancybox: { | ||
js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js', | ||
css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css' | ||
} | ||
}, | ||
isPhotoFigcaption: false, | ||
islazyload: false, | ||
isanchor: false | ||
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { | ||
isPost: false, | ||
isHome: false, | ||
isHighlightShrink: false, | ||
isToc: false, | ||
postUpdate: '2025-02-07 10:09:04' | ||
}</script><noscript><style type="text/css"> | ||
#nav { | ||
opacity: 1 | ||
} | ||
.justified-gallery img { | ||
opacity: 1 | ||
} | ||
|
||
#recent-posts time, | ||
#post-meta time { | ||
display: inline !important | ||
} | ||
</style></noscript><script>(win=>{ | ||
win.saveToLocal = { | ||
set: function setWithExpiry(key, value, ttl) { | ||
if (ttl === 0) return | ||
const now = new Date() | ||
const expiryDay = ttl * 86400000 | ||
const item = { | ||
value: value, | ||
expiry: now.getTime() + expiryDay, | ||
} | ||
localStorage.setItem(key, JSON.stringify(item)) | ||
}, | ||
|
||
get: function getWithExpiry(key) { | ||
const itemStr = localStorage.getItem(key) | ||
|
||
if (!itemStr) { | ||
return undefined | ||
} | ||
const item = JSON.parse(itemStr) | ||
const now = new Date() | ||
|
||
if (now.getTime() > item.expiry) { | ||
localStorage.removeItem(key) | ||
return undefined | ||
} | ||
return item.value | ||
} | ||
} | ||
|
||
win.getScript = url => new Promise((resolve, reject) => { | ||
const script = document.createElement('script') | ||
script.src = url | ||
script.async = true | ||
script.onerror = reject | ||
script.onload = script.onreadystatechange = function() { | ||
const loadState = this.readyState | ||
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return | ||
script.onload = script.onreadystatechange = null | ||
resolve() | ||
} | ||
document.head.appendChild(script) | ||
}) | ||
|
||
win.activateDarkMode = function () { | ||
document.documentElement.setAttribute('data-theme', 'dark') | ||
if (document.querySelector('meta[name="theme-color"]') !== null) { | ||
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d') | ||
} | ||
} | ||
win.activateLightMode = function () { | ||
document.documentElement.setAttribute('data-theme', 'light') | ||
if (document.querySelector('meta[name="theme-color"]') !== null) { | ||
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff') | ||
} | ||
} | ||
const t = saveToLocal.get('theme') | ||
|
||
if (t === 'dark') activateDarkMode() | ||
else if (t === 'light') activateLightMode() | ||
|
||
const asideStatus = saveToLocal.get('aside-status') | ||
if (asideStatus !== undefined) { | ||
if (asideStatus === 'hide') { | ||
document.documentElement.classList.add('hide-aside') | ||
} else { | ||
document.documentElement.classList.remove('hide-aside') | ||
} | ||
} | ||
|
||
const fontSizeVal = saveToLocal.get('global-font-size') | ||
if (fontSizeVal !== undefined) { | ||
document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px') | ||
} | ||
})(window)</script><meta name="generator" content="Hexo 5.3.0"></head><body><div id="web_bg"></div><div id="error-wrap"><div class="error-content"><div class="error-img" style="background-image: url('https://i.loli.net/2020/05/19/aKOcLiyPl2JQdFD.png')"></div><div class="error-info"><h1 class="error_title">404</h1><div class="error_subtitle">Page Not Found</div><a class="button--animated" href="/"><i class="fas fa-rocket"></i>回到主页</a></div></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script>function panguFn () { | ||
if (typeof pangu === 'object') pangu.autoSpacingPage() | ||
else { | ||
getScript('https://cdn.jsdelivr.net/npm/pangu/dist/browser/pangu.min.js') | ||
.then(() => { | ||
pangu.autoSpacingPage() | ||
}) | ||
} | ||
} | ||
|
||
function panguInit () { | ||
if (false){ | ||
GLOBAL_CONFIG_SITE.isPost && panguFn() | ||
} else { | ||
panguFn() | ||
} | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"></div><script src="https://cdn.jsdelivr.net/npm/[email protected]/js/md5.min.js"></script><script>window.addEventListener('load', () => { | ||
const changeContent = (content) => { | ||
if (content === '') return content | ||
|
||
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link | ||
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url | ||
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code | ||
content = content.replace(/<[^>]+>/g,"") // remove html tag | ||
|
||
if (content.length > 150) { | ||
content = content.substring(0,150) + '...' | ||
} | ||
return content | ||
} | ||
|
||
const getIcon = (icon, mail) => { | ||
if (icon) return icon | ||
let defaultIcon = '?d=monsterid' | ||
let iconUrl = `https://gravatar.loli.net/avatar/${md5(mail.toLowerCase()) + defaultIcon}` | ||
return iconUrl | ||
} | ||
|
||
const generateHtml = array => { | ||
let result = '' | ||
|
||
if (array.length) { | ||
for (let i = 0; i < array.length; i++) { | ||
result += '<div class=\'aside-list-item\'>' | ||
|
||
if (true) { | ||
const name = 'src' | ||
result += `<a href='${array[i].url}' class='thumbnail'><img ${name}='${array[i].avatar}' alt='${array[i].nick}'></a>` | ||
} | ||
|
||
result += `<div class='content'> | ||
<a class='comment' href='${array[i].url}'>${array[i].content}</a> | ||
<div class='name'><span>${array[i].nick} / </span><time datetime="${array[i].date}">${btf.diffDate(array[i].date, true)}</time></div> | ||
</div></div>` | ||
} | ||
} else { | ||
result += '没有评论' | ||
} | ||
|
||
let $dom = document.querySelector('#card-newest-comments .aside-list') | ||
$dom.innerHTML= result | ||
window.lazyLoadInstance && window.lazyLoadInstance.update() | ||
window.pjax && window.pjax.refresh($dom) | ||
} | ||
|
||
const getComment = () => { | ||
const serverURL = 'https://3QWSvR7h.api.lncldglobal.com' | ||
|
||
var settings = { | ||
"method": "GET", | ||
"headers": { | ||
"X-LC-Id": '3QWSvR7hxh88qvDtAYhxOcTx-MdYXbMMI', | ||
"X-LC-Key": 'bx9QuGPpYOusiHYiEy1xsMTa', | ||
"Content-Type": "application/json" | ||
}, | ||
} | ||
|
||
fetch(`${serverURL}/1.1/classes/Comment?limit=3&order=-createdAt`,settings) | ||
.then(response => response.json()) | ||
.then(data => { | ||
const valineArray = data.results.map(function (e) { | ||
return { | ||
'avatar': getIcon(e.QQAvatar, e.mail), | ||
'content': changeContent(e.comment), | ||
'nick': e.nick, | ||
'url': e.url + '#' + e.objectId, | ||
'date': e.updatedAt, | ||
} | ||
}) | ||
saveToLocal.set('valine-newest-comments', JSON.stringify(valineArray), 10/(60*24)) | ||
generateHtml(valineArray) | ||
}).catch(e => { | ||
const $dom = document.querySelector('#card-newest-comments .aside-list') | ||
$dom.innerHTML= "无法获取评论,请确认相关配置是否正确" | ||
}) | ||
} | ||
|
||
const newestCommentInit = () => { | ||
if (document.querySelector('#card-newest-comments .aside-list')) { | ||
const data = saveToLocal.get('valine-newest-comments') | ||
if (data) { | ||
generateHtml(JSON.parse(data)) | ||
} else { | ||
getComment() | ||
} | ||
} | ||
} | ||
|
||
newestCommentInit() | ||
document.addEventListener('pjax:complete', newestCommentInit) | ||
})</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/[email protected]/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [ | ||
'title', | ||
'#config-diff', | ||
'#body-wrap', | ||
'#rightside-config-hide', | ||
'#rightside-config-show', | ||
'.js-pjax' | ||
] | ||
|
||
if (false) { | ||
pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]') | ||
} | ||
|
||
var pjax = new Pjax({ | ||
elements: 'a:not([target="_blank"]):not([href="/music/"]):not([href="/no-pjax/"])', | ||
selectors: pjaxSelectors, | ||
cacheBust: false, | ||
analytics: false, | ||
scrollRestoration: false | ||
}) | ||
|
||
document.addEventListener('pjax:complete', function () { | ||
window.refreshFn() | ||
|
||
document.querySelectorAll('script[data-pjax]').forEach(item => { | ||
const newScript = document.createElement('script') | ||
const content = item.text || item.textContent || item.innerHTML || "" | ||
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value)) | ||
newScript.appendChild(document.createTextNode(content)) | ||
item.parentNode.replaceChild(newScript, item) | ||
}) | ||
|
||
GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update() | ||
|
||
typeof chatBtnFn === 'function' && chatBtnFn() | ||
typeof panguInit === 'function' && panguInit() | ||
|
||
if (typeof gtag === 'function') { | ||
gtag('config', '', {'page_path': window.location.pathname}); | ||
} | ||
|
||
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting() | ||
|
||
// Analytics | ||
if (false) { | ||
MtaH5.pgv() | ||
} | ||
|
||
// prismjs | ||
typeof Prism === 'object' && Prism.highlightAll() | ||
|
||
typeof preloader === 'object' && preloader.endLoading() | ||
}) | ||
|
||
|
||
document.addEventListener('pjax:send', function () { | ||
typeof preloader === 'object' && preloader.initLoading() | ||
|
||
if (window.aplayers) { | ||
for (let i = 0; i < window.aplayers.length; i++) { | ||
if (!window.aplayers[i].options.fixed) { | ||
window.aplayers[i].destroy() | ||
} | ||
} | ||
} | ||
|
||
typeof typed === 'object' && typed.destroy() | ||
|
||
//reset readmode | ||
const $bodyClassList = document.body.classList | ||
$bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode') | ||
|
||
}) | ||
|
||
document.addEventListener('pjax:error', (e) => { | ||
if (e.request.status === 404) { | ||
pjax.loadUrl('/404.html') | ||
} | ||
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html> |
Oops, something went wrong.